From 45a1dbdf9a382b63d51fd28248be206c33f7afc0 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Wed, 25 Jun 2014 16:33:08 -0600 Subject: [PATCH] Fix bug were none of the relative paths were actually being used for file lookup. --- ChangeLog | 5 +++++ runtest.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e7e7b3..207878d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-25 Rob Savoye + + * runtest.exp: (lookfor-file): Fix bug were none of the relative + paths were actually being used for file lookup. + 2014-06-06 Ben Elliston * 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] } -- 2.7.4