Skip to content

Commit 5079ec3

Browse files
committed
driver/usbloader: enable verbose output for UUUDriver
The `uuu` tool messes up the terminal output when it detects a pty as stdout, which makes reading the pytest output difficult. Disable the pty-detection by passing `-v` to `uuu`. The extra output from verbose mode isn't that much, so no harm should be expected.
1 parent 13d393e commit 5079ec3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labgrid/driver/usbloader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def load(self, filename=None):
192192
file_mf.hash = self.get_hash(filename)
193193
file_mf.sync_to_resource()
194194

195-
cmd = ['-b', self.script] if self.script else []
195+
# Enable verbose mode to avoid messing up the terminal
196+
cmd = ["-v"]
197+
cmd += ['-b', self.script] if self.script else []
196198

197199
processwrapper.check_output(
198200
self.loader.command_prefix + [self.tool] + cmd + [mf.get_remote_path()],

0 commit comments

Comments
 (0)