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
diff --git a/checkbox_support/scripts/run_watcher.py b/checkbox_support/scripts/run_watcher.py
index db995a1..64a7219 100644
--- a/checkbox_support/scripts/run_watcher.py
+++ b/checkbox_support/scripts/run_watcher.py
@@ -70,10 +70,10 @@ class USBWatcher:
70 usb_address = self.args.zapper_usb_address70 usb_address = self.args.zapper_usb_address
71 if self.args.testcase == "insertion":71 if self.args.testcase == "insertion":
72 print("Calling zapper to connect the USB device")72 print("Calling zapper to connect the USB device")
73 zapper_control.usb_set_state(usb_address, 'dut')73 zapper_control.usb_set_state(usb_address, 'DUT')
74 elif self.args.testcase == "removal":74 elif self.args.testcase == "removal":
75 print("Calling zapper to disconnect the USB device")75 print("Calling zapper to disconnect the USB device")
76 zapper_control.usb_set_state(usb_address, 'off')76 zapper_control.usb_set_state(usb_address, 'OFF')
77 else:77 else:
78 if self.args.testcase == "insertion":78 if self.args.testcase == "insertion":
79 print("\n\nINSERT NOW\n\n", flush=True)79 print("\n\nINSERT NOW\n\n", flush=True)

Subscribers

People subscribed via source and target branches