summaryrefslogtreecommitdiffstats
path: root/support/testing/tests/init
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
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')
-rw-r--r--support/testing/tests/init/base.py1
-rw-r--r--support/testing/tests/init/test_busybox.py5
-rw-r--r--support/testing/tests/init/test_none.py1
-rw-r--r--support/testing/tests/init/test_systemd.py7
4 files changed, 4 insertions, 10 deletions
diff --git a/support/testing/tests/init/base.py b/support/testing/tests/init/base.py
index a261d7dd46..c09ee46eb0 100644
--- a/support/testing/tests/init/base.py
+++ b/support/testing/tests/init/base.py
@@ -2,6 +2,7 @@ import os
import subprocess
import infra.basetest
+
class InitSystemBase(infra.basetest.BRTest):
def startEmulator(self, fs_type, kernel=None, dtb=None, init=None):
diff --git a/support/testing/tests/init/test_busybox.py b/support/testing/tests/init/test_busybox.py
index c3e425bf5d..6c75f685ad 100644
--- a/support/testing/tests/init/test_busybox.py
+++ b/support/testing/tests/init/test_busybox.py
@@ -1,6 +1,7 @@
import infra.basetest
from tests.init.base import InitSystemBase as InitSystemBase
+
class InitSystemBusyboxBase(InitSystemBase):
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
@@ -11,7 +12,6 @@ class InitSystemBusyboxBase(InitSystemBase):
super(InitSystemBusyboxBase, self).checkInit("/bin/busybox")
-#-------------------------------------------------------------------------------
class TestInitSystemBusyboxRo(InitSystemBusyboxBase):
config = InitSystemBusyboxBase.config + \
"""
@@ -25,7 +25,6 @@ class TestInitSystemBusyboxRo(InitSystemBusyboxBase):
self.checkNetwork("eth0", 1)
-#-------------------------------------------------------------------------------
class TestInitSystemBusyboxRw(InitSystemBusyboxBase):
config = InitSystemBusyboxBase.config + \
"""
@@ -38,7 +37,6 @@ class TestInitSystemBusyboxRw(InitSystemBusyboxBase):
self.checkNetwork("eth0", 1)
-#-------------------------------------------------------------------------------
class TestInitSystemBusyboxRoNet(InitSystemBusyboxBase):
config = InitSystemBusyboxBase.config + \
"""
@@ -53,7 +51,6 @@ class TestInitSystemBusyboxRoNet(InitSystemBusyboxBase):
self.checkNetwork("eth0")
-#-------------------------------------------------------------------------------
class TestInitSystemBusyboxRwNet(InitSystemBusyboxBase):
config = InitSystemBusyboxBase.config + \
"""
diff --git a/support/testing/tests/init/test_none.py b/support/testing/tests/init/test_none.py
index f55db5d3e0..c8a79f0bab 100644
--- a/support/testing/tests/init/test_none.py
+++ b/support/testing/tests/init/test_none.py
@@ -3,6 +3,7 @@ import pexpect
import infra.basetest
from tests.init.base import InitSystemBase as InitSystemBase
+
class TestInitSystemNone(InitSystemBase):
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
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