diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2016-04-25 11:09:52 +0200 |
---|---|---|
committer | Jacob Bachmeyer <jcb62281+dev@gmail.com> | 2020-06-15 21:52:08 -0500 |
commit | f3bfd00a619fa23078e7fddf2de4bc537a8ca0c4 (patch) | |
tree | ab1e2ac6f291c64d5f2d30b4f81a5728ada89fca | |
parent | 6e55af0128f2f4e9c399e58bfa0ec4c62cf4aa92 (diff) | |
download | dejagnu-f3bfd00a619fa23078e7fddf2de4bc537a8ca0c4.zip dejagnu-f3bfd00a619fa23078e7fddf2de4bc537a8ca0c4.tar.gz dejagnu-f3bfd00a619fa23078e7fddf2de4bc537a8ca0c4.tar.bz2 |
Keep trailing newline in remote execution output
* lib/rsh.exp (rsh_exec): Don't remove trailing newline.
* lib/ssh.exp (rsh_exec): Likewise.
-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] } |