summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2017-10-05 21:42:12 (GMT)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-10-06 17:06:05 (GMT)
commit022d8df1b5e2c5daf3b5b6d0ed8f740164d3be81 (patch)
tree955c1e96b4f40a028b410ae0d860316658df565d
parent918a02ce224c0adf7dda3531df8a68d6a556b30a (diff)
downloadbuildroot-022d8df1b5e2c5daf3b5b6d0ed8f740164d3be81.tar.gz
buildroot-022d8df1b5e2c5daf3b5b6d0ed8f740164d3be81.tar.bz2
support/testing: fix remaining code style
Fix the remaining code style warnings from flake8: - properly indent continuation lines; - use proper code to test a parameter is not None. Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--support/testing/tests/init/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/testing/tests/init/base.py b/support/testing/tests/init/base.py
index dea46a4..75cfbe9 100644
--- a/support/testing/tests/init/base.py
+++ b/support/testing/tests/init/base.py
@@ -18,7 +18,7 @@ class InitSystemBase(infra.basetest.BRTest):
else:
kernel = os.path.join(self.builddir, "images", kernel)
options.extend(["-dtb", os.path.join(self.builddir, "images",
- "{}.dtb".format(dtb))])
+ "{}.dtb".format(dtb))])
kernel_cmdline = ["root=/dev/mmcblk0",
"rootfstype={}".format(fs_type),
@@ -26,7 +26,7 @@ class InitSystemBase(infra.basetest.BRTest):
"ro",
"console=ttyAMA0"]
- if not init is None:
+ if init is not None:
kernel_cmdline.extend(["init={}".format(init)])
self.emulator.boot(arch="armv7",