From 5c9590f939e199fc48bba7410dbac429750e29f8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 31 Aug 2010 15:15:35 +0000 Subject: [PATCH] Expand ${PWD} in the vgopts: line of .vgtest files. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11311 --- tests/vg_regtest.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 15c53f14a5..adf3b9aadf 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -217,7 +217,9 @@ sub read_vgtest_file($) if ($line =~ /^\s*#/ || $line =~ /^\s*$/) { next; } elsif ($line =~ /^\s*vgopts:\s*(.*)$/) { - $vgopts = $vgopts . " " . $1; # Nb: Make sure there's a space! + my $addvgopts = $1; + $addvgopts =~ s/\${PWD}/$ENV{PWD}/g; + $vgopts = $vgopts . " " . $addvgopts; # Nb: Make sure there's a space! } elsif ($line =~ /^\s*prog:\s*(.*)$/) { $prog = validate_program(".", $1, 0, 0); } elsif ($line =~ /^\s*args:\s*(.*)$/) { -- 2.47.3