diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-09-13 15:48:18 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-13 17:41:19 +0100 |
commit | daa3ad5807f6fc0d15b9310937d07a16edac6d22 (patch) | |
tree | 56aff77895ed267f4a21fb52aeadcc356fef38ad /meta | |
parent | 1b8e4abd2d9c0901d38d89d0f944fe1ffd019379 (diff) | |
download | openembedded-core-daa3ad5807f6fc0d15b9310937d07a16edac6d22.tar.gz openembedded-core-daa3ad5807f6fc0d15b9310937d07a16edac6d22.tar.bz2 openembedded-core-daa3ad5807f6fc0d15b9310937d07a16edac6d22.zip |
lib/oeqa/runtime: timeout increases
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/runtime/ping.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/runtime/smart.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/ping.py b/meta/lib/oeqa/runtime/ping.py index 935f638891..e163b969f0 100644 --- a/meta/lib/oeqa/runtime/ping.py +++ b/meta/lib/oeqa/runtime/ping.py @@ -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] diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py index e2f0aea7c5..558065525f 100644 --- a/meta/lib/oeqa/runtime/smart.py +++ b/meta/lib/oeqa/runtime/smart.py @@ -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) |