Fix bug were none of the relative paths were actually being used for file lookup.
authorRob Savoye <rob@welcomehome.org>
Wed, 25 Jun 2014 22:33:08 +0000 (16:33 -0600)
committerRob Savoye <rob@welcomehome.org>
Wed, 25 Jun 2014 22:33:08 +0000 (16:33 -0600)
ChangeLog
runtest.exp

index 5e7e7b3..207878d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index bd39dd8..9f0997f 100644 (file)
@@ -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]
        }