diff options
author | Alexandru Palalau <alexandru.palalau@intel.com> | 2013-07-12 13:44:37 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-15 10:29:27 -0700 |
commit | 1b39d57e7b5c9b69d565cf4d188ebc2f14e66ae6 (patch) | |
tree | e252df005ebb78028454ff122924380eff611bd5 /meta/lib/oeqa/runtime/df.py | |
parent | 1515d33d2c5b7275a3ac20e07c1db1d8273de796 (diff) | |
download | openembedded-core-contrib-1b39d57e7b5c9b69d565cf4d188ebc2f14e66ae6.tar.gz |
lib/oeqa/runtime: add tests for syslog and df
Add tests for free space and syslog.
Changed in v2:
- limit df's output to /
- syslog: fix restart in case of systemd
Signed-off-by: Alexandru Palalau <alexandru.palalau@intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa/runtime/df.py')
-rw-r--r-- | meta/lib/oeqa/runtime/df.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/df.py b/meta/lib/oeqa/runtime/df.py new file mode 100644 index 0000000000..c9119898dc --- /dev/null +++ b/meta/lib/oeqa/runtime/df.py @@ -0,0 +1,13 @@ +import unittest +from oeqa.oetest import oeRuntimeTest +from oeqa.utils.decorators import * + +def setUpModule(): + skipModuleUnless(oeRuntimeTest.tc.target.run('which df')[0] == 0, "No df in image or no connection") + +class DfTest(oeRuntimeTest): + + @skipUnlessPassed("test_ssh") + def test_df(self): + (status,output) = self.target.run("df / | sed -n '2p' | awk '{print $4}'") + self.assertTrue(int(output)>5120, msg="Not enough space on image. Current size is %s" % output) |