mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

This migrates current runtime test suite to be used with the new framework. [YOCTO #10234] (From OE-Core rev: b39c61f2d442c79d03b73e8ffd104996fcb2177e) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
493 B
Python
14 lines
493 B
Python
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.depends import OETestDepends
|
|
from oeqa.core.decorator.oeid import OETestID
|
|
|
|
class DfTest(OERuntimeTestCase):
|
|
|
|
@OETestID(234)
|
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
|
def test_df(self):
|
|
cmd = "df / | sed -n '2p' | awk '{print $4}'"
|
|
(status,output) = self.target.run(cmd)
|
|
msg = 'Not enough space on image. Current size is %s' % output
|
|
self.assertTrue(int(output)>5120, msg=msg)
|