From 8ca5691a46cfffd4c9df12d9dfcc8f595c46aaa4 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 17 Jun 2020 06:20:10 -0500 Subject: [PATCH] sanitycheck: sanitylib: Fix bare --west-flash option If we pass --west-flash with no additional argument that was getting treated the same as if it wasn't passed at all. Change the check to be based on 'None' to handle the bare --west-flash case properly. Signed-off-by: Kumar Gala --- scripts/sanity_chk/sanitylib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sanity_chk/sanitylib.py b/scripts/sanity_chk/sanitylib.py index ba78cfdceea..ceb62696ebe 100644 --- a/scripts/sanity_chk/sanitylib.py +++ b/scripts/sanity_chk/sanitylib.py @@ -546,7 +546,7 @@ class DeviceHandler(Handler): def handle(self): out_state = "failed" - if self.suite.west_flash: + if self.suite.west_flash is not None: command = ["west", "flash", "--skip-rebuild", "-d", self.build_dir] if self.suite.west_runner: command.append("--runner")