aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.exp')
-rw-r--r--runtest.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtest.exp b/runtest.exp
index 173c9a4..02c10ed 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1829,7 +1829,10 @@ foreach current_target $target_list {
# list of directories. Look for match on each item.
set found 0
foreach directory $cmdline_dir_to_run {
- if {[string match $directory $dir]} {
+ # Look for a directory that ends with the
+ # provided --directory name.
+ if {[string match "$directory" $dir]
+ || [string match "*/$directory" $dir]} {
set found 1
break
}