Skip to content

Commit 72494bc

Browse files
authored
Merge pull request labgrid-project#892 from JoshuaWatt/rx-stderr
shelldriver: Redirect rx stderr to /dev/null
2 parents 2437f0f + df87b35 commit 72494bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

labgrid/driver/shelldriver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ def _get_xmodem_rx_cmd(self, filename):
320320
if not self._xmodem_cached_rx_cmd:
321321
if self._run('which rx')[0]:
322322
# busybox rx
323-
self._xmodem_cached_rx_cmd = "rx '{filename}'"
323+
# lrz may provide rx so redirect stderr for the same reason as below
324+
self._xmodem_cached_rx_cmd = "rx '{filename}' 2>/dev/null"
324325
elif self._run('which lrz')[0]:
325326
# redirect stderr to prevent lrz from printing "ready to receive
326327
# $file", which will confuse the XMODEM instance

0 commit comments

Comments
 (0)