Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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) |