aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-10 00:00:35 +1100
committerBen Elliston <bje@gnu.org>2018-12-10 00:00:35 +1100
commit4c88419f2dfbbf172ed54639d632d1272ff669f4 (patch)
tree656a8b9bb368d40b4a0394e77ab700ff658460c1 /lib
parent240c052705249d64a68462f9e7c64c526a32e3d3 (diff)
downloaddejagnu-4c88419f2dfbbf172ed54639d632d1272ff669f4.zip
dejagnu-4c88419f2dfbbf172ed54639d632d1272ff669f4.tar.gz
dejagnu-4c88419f2dfbbf172ed54639d632d1272ff669f4.tar.bz2
* runtest.exp (setup_target_hook): Use 'ne' and not '!='.
(iterate_target_variants_two): Likewise. * lib/remote.exp (standard_download): Use 'eq' not '=='. (remote_upload): Likewise. * lib/framework.exp (open_logs): Likewise. (is_remote): Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/framework.exp6
-rw-r--r--lib/remote.exp4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/framework.exp b/lib/framework.exp
index bf9823f..5879ea6 100644
--- a/lib/framework.exp
+++ b/lib/framework.exp
@@ -72,7 +72,7 @@ proc open_logs { } {
catch "file delete -force -- $outdir/$tool.log"
log_file -a $outdir/$tool.log
verbose "Opening log files in $outdir"
- if { $tool == "testrun" } {
+ if { $tool eq "testrun" } {
set tool ""
}
fconfigure $sum_file -buffering line
@@ -133,9 +133,9 @@ proc is_remote { board } {
set board [lindex [split $board "/"] 0]
# Map the host or build back into their short form.
- if { [board_info build name] == $board } {
+ if { [board_info build name] eq $board } {
set board "build"
- } elseif { [board_info host name] == $board } {
+ } elseif { [board_info host name] eq $board } {
set board "host"
}
diff --git a/lib/remote.exp b/lib/remote.exp
index 0e5bad2..f496845 100644
--- a/lib/remote.exp
+++ b/lib/remote.exp
@@ -497,7 +497,7 @@ proc standard_download {dest file destfile} {
if { $dest ne "" } {
set result [rsh_download $dest $file $destfile]
- if { $result == $destfile } {
+ if { $result eq $destfile } {
return $orig_destfile
} else {
return $result
@@ -529,7 +529,7 @@ proc remote_upload {dest srcfile args} {
}
if { ![isremote $dest] } {
- if { $destfile eq "" || $srcfile == $destfile } {
+ if { $destfile eq "" || $srcfile eq $destfile } {
return $srcfile
}
set result [catch "exec cp -p $srcfile $destfile" output]