aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2016-04-25 11:09:52 +0200
committerJacob Bachmeyer <jcb62281+dev@gmail.com>2020-06-15 21:52:08 -0500
commitf3bfd00a619fa23078e7fddf2de4bc537a8ca0c4 (patch)
treeab1e2ac6f291c64d5f2d30b4f81a5728ada89fca /lib
parent6e55af0128f2f4e9c399e58bfa0ec4c62cf4aa92 (diff)
downloaddejagnu-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.
Diffstat (limited to 'lib')
-rw-r--r--lib/rsh.exp3
-rw-r--r--lib/ssh.exp3
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]
}