summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-08 21:41:05 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-08 21:41:53 (GMT)
commitbff6b61adf36e7b96f0d775f94d963789f57c3a6 (patch)
tree77cf9c9cef51f13dfb4375bcdd3d3a48fce4334c
parent6e5a204dd8414673def51f3cf1f772357c9539b0 (diff)
downloadbuildroot-bff6b61adf36e7b96f0d775f94d963789f57c3a6.tar.gz
buildroot-bff6b61adf36e7b96f0d775f94d963789f57c3a6.tar.bz2
support/testing/tests/fs/test_f2fs: fix flake8 warning
This commit fixes the following flake8 warnings: support/testing/tests/fs/test_f2fs.py:6:1: E302 expected 2 blank lines, found 1 support/testing/tests/fs/test_f2fs.py:12:1: E302 expected 2 blank lines, found 1 support/testing/tests/fs/test_f2fs.py:38:23: E225 missing whitespace around operator Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--support/testing/tests/fs/test_f2fs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/testing/tests/fs/test_f2fs.py b/support/testing/tests/fs/test_f2fs.py
index 9f7c393..819c619 100644
--- a/support/testing/tests/fs/test_f2fs.py
+++ b/support/testing/tests/fs/test_f2fs.py
@@ -3,12 +3,14 @@ import subprocess
import infra.basetest
+
def dumpf2fs_getprop(out, prop):
for line in out:
fields = line.split(" = ")
if fields[0] == prop:
return fields[1].strip()
+
class TestF2FS(infra.basetest.BRTest):
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
@@ -35,8 +37,8 @@ class TestF2FS(infra.basetest.BRTest):
self.assertEqual(prop, "262144 (128 MB)")
kernel = os.path.join(self.builddir, "images", "zImage")
- kernel_cmdline=["root=/dev/mmcblk0", "rootfstype=f2fs",
- "console=ttyAMA0"]
+ kernel_cmdline = ["root=/dev/mmcblk0", "rootfstype=f2fs",
+ "console=ttyAMA0"]
dtb = infra.download(self.downloaddir, "vexpress-v2p-ca9.dtb")
options = ["-M", "vexpress-a9", "-dtb", dtb,
"-drive", "file={},if=sd,format=raw".format(img)]