Merge ~pgentili/checkbox-support:fix-set-state-uppercase into checkbox-support:master

Proposed by Paolo Gentili
Status: Merged
Merged at revision: 637f841da782cbc658c6bfcc893486a4bd1c6c52
Proposed branch: ~pgentili/checkbox-support:fix-set-state-uppercase
Merge into: checkbox-support:master
Diff against target: 17 lines (+2/-2)
1 file modified
checkbox_support/scripts/run_watcher.py (+2/-2)
Reviewer Review Type Date Requested Status
Maciej Kisielewski Approve
Review via email: mp+431062@code.launchpad.net

Commit message

Fix: zapper states to upper-case

To post a comment you must log in.
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Obvious +1 :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/checkbox_support/scripts/run_watcher.py b/checkbox_support/scripts/run_watcher.py
2index db995a1..64a7219 100644
3--- a/checkbox_support/scripts/run_watcher.py
4+++ b/checkbox_support/scripts/run_watcher.py
5@@ -70,10 +70,10 @@ class USBWatcher:
6 usb_address = self.args.zapper_usb_address
7 if self.args.testcase == "insertion":
8 print("Calling zapper to connect the USB device")
9- zapper_control.usb_set_state(usb_address, 'dut')
10+ zapper_control.usb_set_state(usb_address, 'DUT')
11 elif self.args.testcase == "removal":
12 print("Calling zapper to disconnect the USB device")
13- zapper_control.usb_set_state(usb_address, 'off')
14+ zapper_control.usb_set_state(usb_address, 'OFF')
15 else:
16 if self.args.testcase == "insertion":
17 print("\n\nINSERT NOW\n\n", flush=True)

Subscribers

People subscribed via source and target branches