blob: aecc32d7ce3e750ff0a8339af680fa74b3a384b7 [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
4
5class 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)