mirror of
https://git.yoctoproject.org/poky
synced 2026-09-18 06:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7f57d3c524
commit
2079a30b1f
13
meta/lib/oeqa/runtime/df.py
Normal file
13
meta/lib/oeqa/runtime/df.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user