summaryrefslogtreecommitdiffstats
path: root/support/testing/tests/init/test_systemd.py
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2017-10-05 18:42:10 -0300
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-10-06 18:58:16 +0200
commit847d6d1e8568c8efd2089e81dac872e371f747a0 (patch)
tree6e7e655109d050ea7dc2833c92b64e8e54b8add9 /support/testing/tests/init/test_systemd.py
parentef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f (diff)
downloadbuildroot-847d6d1e8568c8efd2089e81dac872e371f747a0.tar.gz
buildroot-847d6d1e8568c8efd2089e81dac872e371f747a0.zip
testing/tests/init: use lowercase method names
Use method naming convention from PEP8 as other test cases already do. sed \ -e 's,startEmulator,start_emulator,g' \ -e 's,checkInit,check_init,g' \ -e 's,checkNetwork,check_network,g' \ -i support/testing/tests/init/*.py Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'support/testing/tests/init/test_systemd.py')
-rw-r--r--support/testing/tests/init/test_systemd.py40
1 files changed, 20 insertions, 20 deletions
diff --git a/support/testing/tests/init/test_systemd.py b/support/testing/tests/init/test_systemd.py
index 77d734895b..48fac1490f 100644
--- a/support/testing/tests/init/test_systemd.py
+++ b/support/testing/tests/init/test_systemd.py
@@ -18,8 +18,8 @@ class InitSystemSystemdBase(InitSystemBase):
# BR2_TARGET_ROOTFS_TAR is not set
"""
- def checkInit(self):
- super(InitSystemSystemdBase, self).checkInit("/lib/systemd/systemd")
+ def check_init(self):
+ super(InitSystemSystemdBase, self).check_init("/lib/systemd/systemd")
class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
@@ -32,9 +32,9 @@ class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
""".format(infra.filepath("tests/init/systemd-factory"))
def test_run(self):
- self.startEmulator("squashfs", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("squashfs", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
# This one must be executed on the target, to check that
# the factory feature works as expected
@@ -51,9 +51,9 @@ class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase):
"""
def test_run(self):
- self.startEmulator("ext2", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("ext2", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
@@ -66,9 +66,9 @@ class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
"""
def test_run(self):
- self.startEmulator("squashfs", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("squashfs", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
@@ -81,9 +81,9 @@ class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
"""
def test_run(self):
- self.startEmulator("ext2", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("ext2", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
@@ -112,9 +112,9 @@ class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
"""
def test_run(self):
- self.startEmulator("squashfs", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("squashfs", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
class TestInitSystemSystemdRwFull(InitSystemSystemdBase):
@@ -142,6 +142,6 @@ class TestInitSystemSystemdRwFull(InitSystemSystemdBase):
"""
def test_run(self):
- self.startEmulator("ext2", "zImage", "vexpress-v2p-ca9")
- self.checkInit()
- self.checkNetwork("eth0")
+ self.start_emulator("ext2", "zImage", "vexpress-v2p-ca9")
+ self.check_init()
+ self.check_network("eth0")
OpenPOWER on IntegriCloud