[test suite] minor bug fix for printing the number of test buckets to be executed
authorMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 01:11:45 +0000 (21:11 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 01:11:45 +0000 (21:11 -0400)
test/test-fwknop.pl

index 364aa18..634803d 100755 (executable)
@@ -581,7 +581,7 @@ for my $test_hr (@tests) {
     next unless &process_include_exclude(&get_msg($test_hr));
     $test_buckets++;
     if ($test_limit > 0) {
-        last if $executed >= $test_limit;
+        last if $test_buckets >= $test_limit;
     }
 }
 &logr("[+] Total test buckets to execute: $test_buckets\n\n");