From 2079a30b1f0d56271484adc708aa43c3f2808e2e Mon Sep 17 00:00:00 2001 From: Alexandru Palalau Date: Fri, 12 Jul 2013 13:44:37 +0300 Subject: 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 Signed-off-by: Stefan Stanacar Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/df.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta/lib/oeqa/runtime/df.py (limited to 'meta/lib/oeqa/runtime/df.py') 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) -- cgit v1.2.3-54-g00ecf