mirror of
https://git.yoctoproject.org/poky
synced 2026-02-14 12:43:03 +01:00
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>
14 lines
490 B
Python
14 lines
490 B
Python
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)
|