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 <kumar.gala@linaro.org>
This commit is contained in:
parent
f4896adaa8
commit
8ca5691a46
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue