Skip to content
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 <>
  • 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):
command = [self.binary]

if shutil.which("valgrind") and self.valgrind:
if self.valgrind and shutil.which("valgrind"):
command = ["valgrind", "--error-exitcode=2",

0 comments on commit b91f374

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