From b569aa0e0056a97b29577f5bda611ef3dd539db3 Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Tue, 1 Nov 2016 07:48:16 +0000 Subject: oeqa/runtime/cases: Migrate runtime tests. 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/cases/df.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/df.py (limited to 'meta/lib/oeqa/runtime/cases/df.py') diff --git a/meta/lib/oeqa/runtime/cases/df.py b/meta/lib/oeqa/runtime/cases/df.py new file mode 100644 index 0000000000..aecc32d7ce --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/df.py @@ -0,0 +1,13 @@ +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) -- cgit v1.2.3-54-g00ecf