When skipping a test due to a rule, note this with the proper logging
authorMike Taylor <mike@miketaylor.org.uk>
Thu, 30 Sep 2010 13:15:53 +0000 (14:15 +0100)
committerMike Taylor <mike@miketaylor.org.uk>
Thu, 30 Sep 2010 13:15:53 +0000 (14:15 +0100)
mechanism, not just a warn() that goes to the server log.

lib/ZOOM/IRSpy.pm

index de2c561..96ead57 100644 (file)
@@ -533,7 +533,8 @@ sub check {
                    $conn->option(current_test_address => $nextaddr);
                    my $tname = $node->name();
                    if ($this->should_skip_test($tname)) {
-                       warn "skipping test '$tname' due to rule";
+                       $conn->log("irspy_test",
+                           "skipping test '$nextaddr' = $tname due to rule");
                        goto NEXT_TEST;
                    }