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:09 -0300
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-10-06 18:56:49 +0200
commitef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f (patch)
treef1187ecd2a501454fc53e9ae03b89e4480f1d40e /support/testing/tests/init/test_systemd.py
parent2927f412be6fd52961a2cd9aaed203d57609eef9 (diff)
downloadbuildroot-ef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f.tar.gz
buildroot-ef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f.zip
support/testing: fix code style
Fix the trivial warnings from flake8: - remove modules imported but unused; - use 2 lines before class or module level method; - remove blank line at end of file. 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.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/support/testing/tests/init/test_systemd.py b/support/testing/tests/init/test_systemd.py
index b1b6517373..77d734895b 100644
--- a/support/testing/tests/init/test_systemd.py
+++ b/support/testing/tests/init/test_systemd.py
@@ -1,6 +1,7 @@
import infra.basetest
from tests.init.base import InitSystemBase as InitSystemBase
+
class InitSystemSystemdBase(InitSystemBase):
config = \
"""
@@ -21,7 +22,6 @@ class InitSystemSystemdBase(InitSystemBase):
super(InitSystemSystemdBase, self).checkInit("/lib/systemd/systemd")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
@@ -43,7 +43,6 @@ class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
self.assertEqual(out[0], "foobar")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
@@ -57,7 +56,6 @@ class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase):
self.checkNetwork("eth0")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
@@ -73,7 +71,6 @@ class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
self.checkNetwork("eth0")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
@@ -89,7 +86,6 @@ class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
self.checkNetwork("eth0")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
@@ -121,7 +117,6 @@ class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
self.checkNetwork("eth0")
-#-------------------------------------------------------------------------------
class TestInitSystemSystemdRwFull(InitSystemSystemdBase):
config = InitSystemSystemdBase.config + \
"""
OpenPOWER on IntegriCloud