diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/df.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/df.py | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | ||
2 | from oeqa.core.decorator.depends import OETestDepends | ||
3 | from oeqa.core.decorator.oeid import OETestID | ||
4 | |||
5 | class DfTest(OERuntimeTestCase): | ||
6 | |||
7 | @OETestID(234) | ||
8 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
9 | def test_df(self): | ||
10 | cmd = "df / | sed -n '2p' | awk '{print $4}'" | ||
11 | (status,output) = self.target.run(cmd) | ||
12 | msg = 'Not enough space on image. Current size is %s' % output | ||
13 | self.assertTrue(int(output)>5120, msg=msg) | ||