]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oeqa/runtime: timeout increases
authorStefan Stanacar <stefanx.stanacar@intel.com>
Fri, 13 Sep 2013 12:48:18 +0000 (15:48 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Sep 2013 16:41:19 +0000 (17:41 +0100)
Increase the timeout for smart commands as under load for qemumips
it's still to small. Also give ping more time fixing a potential
timeout for sato systemd.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/ping.py
meta/lib/oeqa/runtime/smart.py

index 935f638891280c88ebc1dbe0e6b6140197733850..e163b969f0ac510fd7e36a1ece7bf3249a0f5048 100644 (file)
@@ -9,7 +9,7 @@ class PingTest(oeRuntimeTest):
     def test_ping(self):
         output = ''
         status = None
-        endtime = time.time() + 30
+        endtime = time.time() + 60
         while status != 0 and time.time() < endtime:
             proc = subprocess.Popen("ping -c 1 %s" % oeRuntimeTest.tc.qemu.ip, shell=True, stdout=subprocess.PIPE)
             output += proc.communicate()[0]
index e2f0aea7c5b161e650160100ce78f936ff35aa25..558065525f0e7071f3a2fb0b57ebcb2c02599a42 100644 (file)
@@ -15,7 +15,7 @@ class SmartTest(oeRuntimeTest):
     @skipUnlessPassed('test_smart_help')
     def smart(self, command, expected = 0):
         command = 'smart %s' % command
-        status, output = self.target.run(command, 500)
+        status, output = self.target.run(command, 900)
         message = os.linesep.join([command, output])
         self.assertEqual(status, expected, message)
         self.assertFalse("Cannot allocate memory" in output, message)