summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2015-12-15 14:31:25 +0000
committerLinaro Code Review <review@review.linaro.org>2015-12-15 14:31:25 +0000
commit559fa1278a77da30daf3e4d6e305d31d495ac296 (patch)
treef8561e4feb0d64b0fc327e94931b457411e2dc5a
parent0eb8b25fe33721b46b55c4cb685c3069b9e70125 (diff)
parent5e7241c6d28290c2b30b448bbb957f28003adaf3 (diff)
Merge "compare_dg_tests.pl: Fix pattern matching not to be greedy."
-rwxr-xr-xcompare_dg_tests.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/compare_dg_tests.pl b/compare_dg_tests.pl
index 6eb4fd1..715619a 100755
--- a/compare_dg_tests.pl
+++ b/compare_dg_tests.pl
@@ -208,14 +208,14 @@ sub read_unstable($)
my $test = $_;
# Check if line is of type: target:testname
- if (/^(.*):/)
+ if (/^(.*?):/)
{
foreach my $unstable_marker (@unstable_markers)
{
if ($unstable_marker eq $1) {
# If target matches the one supplied as script
# argument, add the testname to the list
- $test =~ s/.*://;
+ $test =~ s/.*?://;
push @unstable_tests, $test;
}
}