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. (From OE-Core rev: daa3ad5807f6fc0d15b9310937d07a16edac6d22) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
8ebe7be3d9
commit
214bb6828e
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue