diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2016-04-25 11:09:52 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-06-11 18:58:49 +0000 |
commit | 382440f145811eeb3e85d0e57d9b8aa5418d1e80 (patch) | |
tree | ab1e2ac6f291c64d5f2d30b4f81a5728ada89fca | |
parent | 1e5110d99ac8bac61e97bbdb4bb78ca72adb7e4e (diff) |
Keep trailing newline in remote execution output.
* lib/rsh.exp (rsh_exec): Don't remove trailing newline.
* lib/ssh.exp (rsh_exec): Likewise.
Change-Id: I2368c18729c4bff9ee87d9163b1c8f4b0ad7f4d8
-rw-r--r-- | lib/rsh.exp | 3 | ||||
-rw-r--r-- | lib/ssh.exp | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/rsh.exp b/lib/rsh.exp index 5b583c6..43f5430 100644 --- a/lib/rsh.exp +++ b/lib/rsh.exp @@ -283,8 +283,5 @@ proc rsh_exec { boardname program pargs inp outp } { return [list -1 "Couldn't parse $RSH output, $output."] } regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output - # Delete one trailing \n because that is what `exec' will do and we want - # to behave identical to it. - regsub "\n$" $output "" output return [list [expr {$status != 0}] $output] } diff --git a/lib/ssh.exp b/lib/ssh.exp index 0cf0f8d..a72f794 100644 --- a/lib/ssh.exp +++ b/lib/ssh.exp @@ -194,9 +194,6 @@ proc ssh_exec { boardname program pargs inp outp } { return [list -1 "Couldn't parse $SSH output, $output."] } regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output - # Delete one trailing \n because that is what `exec' will do and we want - # to behave identical to it. - regsub "\n$" $output "" output return [list [expr {$status != 0}] $output] } |