Skip to content
Permalink
Browse files

sanitycheck: Minor optimization in BinaryHandler

Do not search for the valgrind binary (which) if valgrind
was not selected to be used.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
  • Loading branch information...
aescolar authored and nashif committed Jul 2, 2019
1 parent 649368c commit b91f37494b593fdda5bd321bb683506493ce92e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/sanitycheck
@@ -571,7 +571,7 @@ class BinaryHandler(Handler):
else:
command = [self.binary]

if shutil.which("valgrind") and self.valgrind:
if self.valgrind and shutil.which("valgrind"):
command = ["valgrind", "--error-exitcode=2",
"--leak-check=full",
"--suppressions="+ZEPHYR_BASE+"/scripts/valgrind.supp",

0 comments on commit b91f374

Please sign in to comment.
You can’t perform that action at this time.