From: Rob Savoye Date: Wed, 25 Jun 2014 22:33:08 +0000 (-0600) Subject: Fix bug were none of the relative paths were actually being used for file lookup. X-Git-Tag: upstream/1.6.2~222^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45a1dbdf9a382b63d51fd28248be206c33f7afc0;p=platform%2Fupstream%2Fdejagnu.git Fix bug were none of the relative paths were actually being used for file lookup. --- 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] }