summaryrefslogtreecommitdiffstats
path: root/support/testing/tests/fs/test_iso9660.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/fs/test_iso9660.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/fs/test_iso9660.py')
-rw-r--r--support/testing/tests/fs/test_iso9660.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/support/testing/tests/fs/test_iso9660.py b/support/testing/tests/fs/test_iso9660.py
index 60dcbdc139..41430eb4d2 100644
--- a/support/testing/tests/fs/test_iso9660.py
+++ b/support/testing/tests/fs/test_iso9660.py
@@ -25,6 +25,7 @@ BASIC_CONFIG = \
# BR2_TARGET_ROOTFS_TAR is not set
""".format(infra.filepath("conf/minimal-x86-qemu-kernel.config"))
+
def test_mount_internal_external(emulator, builddir, internal=True):
img = os.path.join(builddir, "images", "rootfs.iso9660")
emulator.boot(arch="i386", options=["-cdrom", img])
@@ -38,13 +39,14 @@ def test_mount_internal_external(emulator, builddir, internal=True):
_, exit_code = emulator.run(cmd)
return exit_code
+
def test_touch_file(emulator):
_, exit_code = emulator.run("touch test")
return exit_code
#
# Grub 2
-#
+
class TestIso9660Grub2External(infra.basetest.BRTest):
config = BASIC_CONFIG + \
@@ -65,6 +67,7 @@ class TestIso9660Grub2External(infra.basetest.BRTest):
exit_code = test_touch_file(self.emulator)
self.assertEqual(exit_code, 1)
+
class TestIso9660Grub2Internal(infra.basetest.BRTest):
config = BASIC_CONFIG + \
"""
@@ -86,7 +89,7 @@ class TestIso9660Grub2Internal(infra.basetest.BRTest):
#
# Syslinux
-#
+
class TestIso9660SyslinuxExternal(infra.basetest.BRTest):
config = BASIC_CONFIG + \
@@ -106,6 +109,7 @@ class TestIso9660SyslinuxExternal(infra.basetest.BRTest):
exit_code = test_touch_file(self.emulator)
self.assertEqual(exit_code, 1)
+
class TestIso9660SyslinuxInternal(infra.basetest.BRTest):
config = BASIC_CONFIG + \
"""
OpenPOWER on IntegriCloud