Making the /Error/ regex match on word boundries so it won't match i2c_error for example.

This commit is contained in:
Bernard Davison
2012-03-20 14:48:53 +11:00
parent cc050c4781
commit 9bfb5ef9a2
2 changed files with 4 additions and 4 deletions
@@ -37,7 +37,7 @@ foreach my $example (sort keys%{$examples->{'aircraft'}})
$ENV{'PAPARAZZI_SRC'},
"make $make_upload_options",
$ENV->{'TEST_VERBOSE'},1);
unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\"");
unlike($upload_output, '/\bError\b/i', "The upload output does not contain the word \"Error\"");
}
}
elsif ($process =~ m#target#)
@@ -57,7 +57,7 @@ foreach my $example (sort keys%{$examples->{'aircraft'}})
$ENV{'PAPARAZZI_SRC'},
"make $make_upload_options",
$ENV->{'TEST_VERBOSE'},1);
unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\"");
unlike($upload_output, '/\bError\b/i', "The upload output does not contain the word \"Error\"");
}
}
}