Skip to content

Commit

Permalink
Wrong environment variable in storage watcher (BugFix) (#1420)
Browse files Browse the repository at this point in the history
Fix: wrong zapper environment variable
  • Loading branch information
p-gentili authored Aug 16, 2024
1 parent 590cbdf commit 7b00249
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions checkbox-support/checkbox_support/scripts/run_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ def run(self):
p = select.poll()
p.register(j, j.get_events())
if self.zapper_usb_address:
zapper_host = os.environ.get("ZAPPER_ADDRESS")
zapper_host = os.environ.get("ZAPPER_HOST")
if not zapper_host:
raise SystemExit(
"ZAPPER_ADDRESS environment variable not found!"
)
raise SystemExit("ZAPPER_HOST environment variable not found!")
usb_address = self.zapper_usb_address
if self.testcase == "insertion":
print("Calling zapper to connect the USB device")
Expand Down

0 comments on commit 7b00249

Please sign in to comment.