From dd88ead8436bb330f6e5df4211c1cbed4383c7a3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 21 Feb 2021 21:34:03 +0100 Subject: [PATCH] tools/compile_and_test_for_board: fix lint Pylint raises an error because of inconsistent return statements in the make_with_outfile function. The return value of this function is never used, so a bare return or no return is ok --- .../compile_and_test_for_board/compile_and_test_for_board.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py b/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py index fadcca0ac1..e0367d295e 100755 --- a/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py +++ b/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py @@ -475,7 +475,7 @@ class RIOTApplication(): if output is not None: if self.testcase: self.testcase.stdout += output + '\n' - return output + return # Run setup-tasks, output is only kept in case of error for taskname, taskargs in setuptasks.items(): @@ -494,7 +494,6 @@ class RIOTApplication(): if self.testcase: self.testcase.stdout += output + '\n' self._write_resultfile(name, 'success', output) - return output except subprocess.CalledProcessError as err: self._make_handle_error(name, err)