Browse Source

* lib/remote.exp (standard_file): Reverse return logic for remote

exists case.

Signed-off-by: Ben Elliston <bje@gnu.org>
dejagnu-1.6
Simon Marchi 10 years ago
committed by Ben Elliston
parent
commit
067c43d8d1
  1. 5
      ChangeLog
  2. 2
      lib/remote.exp

5
ChangeLog

@ -1,3 +1,8 @@
2016-01-23 Simon Marchi <simon.marchi@ericsson.com>
* lib/remote.exp (standard_file): Reverse return logic for remote
exists case.
2016-01-23 Simon Marchi <simon.marchi@ericsson.com>
* lib/remote.exp (standard_file); Add else clause.

2
lib/remote.exp

@ -766,7 +766,7 @@ proc standard_file { dest op args } {
switch $op {
exists {
set status [remote_exec $dest "test -f $file"]
return [lindex $status 0]
return [expr [lindex $status 0] == 0]
}
delete {
set file ""

Loading…
Cancel
Save