|
From: <sv...@va...> - 2010-08-31 15:15:47
|
Author: bart
Date: 2010-08-31 16:15:35 +0100 (Tue, 31 Aug 2010)
New Revision: 11311
Log:
Expand ${PWD} in the vgopts: line of .vgtest files.
Modified:
trunk/tests/vg_regtest.in
Modified: trunk/tests/vg_regtest.in
===================================================================
--- trunk/tests/vg_regtest.in 2010-08-31 13:43:06 UTC (rev 11310)
+++ trunk/tests/vg_regtest.in 2010-08-31 15:15:35 UTC (rev 11311)
@@ -217,7 +217,9 @@
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*(.*)$/) {
|