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 |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame^] | 4 | from oeqa.runtime.decorator.package import OEHasPackage |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | |
| 6 | class DfTest(OERuntimeTestCase): |
| 7 | |
| 8 | @OETestID(234) |
| 9 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame^] | 10 | @OEHasPackage(['coreutils', 'busybox']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | def test_df(self): |
| 12 | cmd = "df / | sed -n '2p' | awk '{print $4}'" |
| 13 | (status,output) = self.target.run(cmd) |
| 14 | msg = 'Not enough space on image. Current size is %s' % output |
| 15 | self.assertTrue(int(output)>5120, msg=msg) |