blob: e0b6bb839d173d87076be7743214c9b78660d793 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001from oeqa.runtime.case import OERuntimeTestCase
2from oeqa.core.decorator.depends import OETestDepends
3from oeqa.core.decorator.oeid import OETestID
Brad Bishop977dc1a2019-02-06 16:01:43 -05004from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6class DfTest(OERuntimeTestCase):
7
8 @OETestID(234)
9 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050010 @OEHasPackage(['coreutils', 'busybox'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011 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)