From 5725ed8dd1fcc8607686dea2c3670deee8a4277c Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 10 Dec 2020 09:48:12 -0500 Subject: [PATCH] twister: fixed pylint issues Fixed import and unused variable warning. Signed-off-by: Anas Nashif --- scripts/footprint/compare_footprint | 2 +- scripts/pylib/twister/scl.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/footprint/compare_footprint b/scripts/footprint/compare_footprint index 03719054a77..3e03ac4c46e 100755 --- a/scripts/footprint/compare_footprint +++ b/scripts/footprint/compare_footprint @@ -125,7 +125,7 @@ def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, cwd=cwd, shell=True) - output,error=proc.communicate() + output,_ = proc.communicate() if proc.wait() == 0: logger.debug(output) return True diff --git a/scripts/pylib/twister/scl.py b/scripts/pylib/twister/scl.py index 2ba6c0e9c29..78ca9d68a35 100644 --- a/scripts/pylib/twister/scl.py +++ b/scripts/pylib/twister/scl.py @@ -3,6 +3,8 @@ # SPDX-License-Identifier: Apache-2.0 # Zephyr's Sanity Check library # +# pylint: disable=unused-import +# # Set of code that other projects can also import to do things on # Zephyr's sanity check testcases.