diff options
author | hawke <hawke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-24 14:00:39 +0000 |
---|---|---|
committer | hawke <hawke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-24 14:00:39 +0000 |
commit | 19cf7ac183c21897ff8afbf41ca8832924e7799c (patch) | |
tree | 4745ac18dae057696b1050657ed0718b10edb40c /lib/sbin/RunTestUtils.pl | |
parent | 2da653f28f6d6d46f2eae780ee49f67a69ef206e (diff) |
When finding the active thorns of a parameter file, concatenate all ActiveThorns lines (as more than one may exist).
Fixes PR1493.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3243 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/RunTestUtils.pl')
-rw-r--r-- | lib/sbin/RunTestUtils.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sbin/RunTestUtils.pl b/lib/sbin/RunTestUtils.pl index 33950b2c..ef5fe31d 100644 --- a/lib/sbin/RunTestUtils.pl +++ b/lib/sbin/RunTestUtils.pl @@ -88,6 +88,8 @@ sub ParseParFile($thorn,$arrangement,$parfile,$config_data) # Give a default test name in case none is specified in the parameter file. $desc = "$arrangement/$thorn/test/$parfile"; + $active = ""; + while (<IN>) { $line = $_; @@ -96,12 +98,12 @@ sub ParseParFile($thorn,$arrangement,$parfile,$config_data) { if($line =~ m/(.*)\"/) { - $active .= $1; + $active .= " ".$1; $processing_active = 0; } else { - $active .= $line; + $active .= " ".$line; } } elsif ($line =~ m/^\s*\!\s*DESC(RIPTION)?\s*\"(.*)\"\s*$/i) @@ -110,11 +112,11 @@ sub ParseParFile($thorn,$arrangement,$parfile,$config_data) } elsif ($line =~ m/^\s*ActiveThorns\s*=\s*\"(.*)\"/i) { - $active = $1; + $active .= " ".$1; } elsif($line =~ m/^\s*ActiveThorns\s*=\s*\"(.*)/i) { - $active = $1; + $active .= " ".$1; $processing_active = 1; } } |