diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2016-04-22 08:01:51 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2016-04-22 08:01:51 +0200 |
commit | 84b57e50672721fdec9484119f4b43c878fcff1a (patch) | |
tree | 4c072dcec61e326e93e1a00b51ad5c4c42f0ccde | |
parent | 65916c29192863c09134c24898bc9b49f20cd6a3 (diff) |
Keep trailing newline.linaro-local/yvan-output-pattern
Change-Id: Ibe052829d7ed5c96bc91eff37ed172a487042329
-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 b33d5a4..fe47382 100644 --- a/lib/rsh.exp +++ b/lib/rsh.exp @@ -284,8 +284,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 5487589..7b40cf9 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] } |