aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-08 00:09:42 +1100
committerBen Elliston <bje@gnu.org>2018-12-08 00:09:42 +1100
commitb3d43d3be8208272573563943690fff25ee50c8f (patch)
tree7245bff4e6eb16bd95c5c9ecfc65bd76241a8a7e /lib/ssh.exp
parent4c9fa60d34fce9f5df2a48b6e025a8a2c0ac3acd (diff)
downloaddejagnu-b3d43d3be8208272573563943690fff25ee50c8f.zip
dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.gz
dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.bz2
* runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp, lib/framework.exp, lib/dg.exp, lib/dejagnu.exp, config/vxworks.exp, config/unix.exp, config/sim.exp, config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp, baseboards/multi-sim.exp, baseboards/cris-sim.exp, baseboards/basic-sim.exp, baseboards/basic-sid.exp, baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp, testsuite/libdejagnu/tunit.exp: Replace empty string comparisons using == and != with 'eq' and 'ne'.
Diffstat (limited to 'lib/ssh.exp')
-rw-r--r--lib/ssh.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh.exp b/lib/ssh.exp
index c589ca9..91a3903 100644
--- a/lib/ssh.exp
+++ b/lib/ssh.exp
@@ -165,7 +165,7 @@ proc ssh_exec { boardname program pargs inp outp } {
# If CMD sends any output to stderr, exec will think it failed.
# More often than not that will be true, but it doesn't catch the
# case where there is no output but the exit code is non-zero.
- if { $inp == "" } {
+ if { $inp eq "" } {
set inp "/dev/null"
}
@@ -190,7 +190,7 @@ proc ssh_exec { boardname program pargs inp outp } {
set status ""
}
verbose "ssh_exec: status:$status text:$output" 4
- if { $status == "" } {
+ if { $status eq "" } {
return [list -1 "Couldn't parse $SSH output, $output."]
}
regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output