[test suite] allow valgrind/crash search/profile coverage tests to run after --test-limit

This commit is contained in:
Michael Rash
2014-11-06 20:21:05 -05:00
parent 04f8b9669a
commit 4ca718f8da
+8 -2
View File
@@ -891,10 +891,16 @@ for my $test_hr (@tests) {
&logr("[+] Total test buckets to execute: $test_buckets\n\n");
### main loop through all of the tests
my $run_flag = 1;
for my $test_hr (@tests) {
&run_test($test_hr);
if ($run_flag
or $test_hr->{'category'} eq 'valgrind output'
or $test_hr->{'category'} eq 'Look for crashes'
or $test_hr->{'category'} eq 'profile coverage') {
&run_test($test_hr);
}
if ($test_limit > 0) {
last if $executed >= $test_limit;
$run_flag = 0 if $executed >= $test_limit;
}
}