diff options
author | Rob Savoye <rob@welcomehome.org> | 2014-06-25 16:33:08 -0600 |
---|---|---|
committer | Rob Savoye <rob@welcomehome.org> | 2014-06-25 16:33:08 -0600 |
commit | 45a1dbdf9a382b63d51fd28248be206c33f7afc0 (patch) | |
tree | 55c0aed3955b72339099da1a91f3421ff8072774 | |
parent | f4d01a7e996969d10fc263aa8dc82644cd149f3a (diff) | |
download | dejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.zip dejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.tar.gz dejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.tar.bz2 |
Fix bug were none of the relative paths were actually being used for file lookup.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | runtest.exp | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2014-06-25 Rob Savoye <rob.savoye@linaro.org> + + * runtest.exp: (lookfor-file): Fix bug were none of the relative + paths were actually being used for file lookup. + 2014-06-06 Ben Elliston <bje@gnu.org> * depcomp, install-sh, missing: Update to latest versions. diff --git a/runtest.exp b/runtest.exp index bd39dd8..9f0997f 100644 --- a/runtest.exp +++ b/runtest.exp @@ -571,8 +571,8 @@ if {[string match "" $logname]} { # lookfor_file -- try to find a file by searching up multiple directory levels # proc lookfor_file { dir name } { - foreach x ".. ../.. ../../.. ../../../.." { - verbose "$dir/$name" 2 + foreach x ". .. ../.. ../../.. ../../../.." { + verbose "$dir/$x/$name" 2 if {[file exists [file join $dir $name]]} { return [file join $dir $name] } |