X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestSlice.py;h=a436ecd5d5e1287ebe051fa70c9b525dd620b5a7;hb=eeba8e303edbfc5e926767ba22294beda642ecba;hp=a312657e0d29011c6da6a6b9f02f3d163de75d93;hpb=457d31694f7b0f60e2a6fea230e9a3572b9d2b78;p=tests.git diff --git a/system/TestSlice.py b/system/TestSlice.py index a312657..a436ecd 100644 --- a/system/TestSlice.py +++ b/system/TestSlice.py @@ -28,7 +28,7 @@ class CompleterTaskSliceSsh (CompleterTask): site_spec, node_spec = self.test_plc.locate_hostname(self.hostname) test_ssh = TestSsh (self.hostname, key=self.private_key, username=self.slicename) full_command = test_ssh.actual_command(self.command) - retcod = utils.system (full_command, silent=silent) + retcod = utils.system (full_command, silent=silent, timeout=10) if self.dry_run: return True if self.expected: return retcod == 0 else: return retcod != 0 @@ -222,7 +222,7 @@ class TestSlice: site_spec, node_spec = self.test_plc.locate_hostname(hostname) test_ssh = TestSsh (hostname, key=private_key, username=self.name()) full_command = test_ssh.actual_command(command) - retcod = utils.system (full_command, silent=True) + retcod = utils.system (full_command, silent=True, timeout=10) if getattr(options, 'dry_run', None): return True if expected: @@ -257,5 +257,5 @@ class TestSlice: else: print("Sliver rootfs {} still present - this is unexpected".format(rootfs)) utils.system(self.test_ssh.actual_command("ls -l {rootfs}; du -hs {rootfs}".format(**locals()), - dry_run=self.dry_run)) + dry_run=self.dry_run, timeout=20)) return [ CompleterTaskRootfs (nodename, qemuname) for (nodename,qemuname) in node_infos ]