summaryrefslogtreecommitdiffstats
path: root/poky/meta/lib/oeqa/runtime/cases/df.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/lib/oeqa/runtime/cases/df.py')
-rw-r--r--poky/meta/lib/oeqa/runtime/cases/df.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/poky/meta/lib/oeqa/runtime/cases/df.py b/poky/meta/lib/oeqa/runtime/cases/df.py
new file mode 100644
index 000000000..aecc32d7c
--- /dev/null
+++ b/poky/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)
OpenPOWER on IntegriCloud