From 022d8df1b5e2c5daf3b5b6d0ed8f740164d3be81 Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Thu, 5 Oct 2017 18:42:12 -0300 Subject: [PATCH] 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 Signed-off-by: Ricardo Martincoski Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- support/testing/tests/init/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/testing/tests/init/base.py b/support/testing/tests/init/base.py index dea46a4473..75cfbe9c59 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", -- 2.30.2