summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/df.py
diff options
context:
space:
mode:
authorAlexandru Palalau <alexandru.palalau@intel.com>2013-07-12 13:44:37 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-16 10:04:16 +0100
commit2079a30b1f0d56271484adc708aa43c3f2808e2e (patch)
treecfce85101a3a25510a6ec06f5c12f14b9f15d79b /meta/lib/oeqa/runtime/df.py
parent7f57d3c524068531eee1945ea6f700db9c4bbf1e (diff)
downloadpoky-2079a30b1f0d56271484adc708aa43c3f2808e2e.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 (From OE-Core rev: 1b39d57e7b5c9b69d565cf4d188ebc2f14e66ae6) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/df.py')
-rw-r--r--meta/lib/oeqa/runtime/df.py13
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 @@
1import unittest
2from oeqa.oetest import oeRuntimeTest
3from oeqa.utils.decorators import *
4
5def setUpModule():
6 skipModuleUnless(oeRuntimeTest.tc.target.run('which df')[0] == 0, "No df in image or no connection")
7
8class DfTest(oeRuntimeTest):
9
10 @skipUnlessPassed("test_ssh")
11 def test_df(self):
12 (status,output) = self.target.run("df / | sed -n '2p' | awk '{print $4}'")
13 self.assertTrue(int(output)>5120, msg="Not enough space on image. Current size is %s" % output)