- def check_sanity_script (self,local_script):
- ssh_handle=self.create_test_ssh()
- ssh_handle.copy_home(local_script)
- scriptname=os.path.basename(local_script)
- if ssh_handle.run("./"+scriptname) != 0:
- print "WARNING: sanity check script %s FAILED"%scriptname
- # xxx - temporary : ignore result and always return true for now
+ def check_hooks_script (self,local_script):
+ script_name=os.path.basename(local_script)
+ utils.header ("SLIVER hook %s (%s)"%(script_name,self.name()))
+ test_ssh=self.create_test_ssh()
+ test_ssh.copy_home(local_script)
+ if test_ssh.run("./"+script_name) != 0:
+ utils.header ("WARNING: hooks check script %s FAILED (ignored)"%script_name)