Import isodate() from Utils.pm
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Ping.pm
index 52c002d..3b88e34 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Ping.pm,v 1.14 2006-10-25 10:49:37 mike Exp $
+# $Id: Ping.pm,v 1.16 2006-11-29 18:18:37 mike Exp $
 
 # See the "Main" test package for documentation
 
@@ -11,6 +11,8 @@ use warnings;
 use ZOOM::IRSpy::Test;
 our @ISA = qw(ZOOM::IRSpy::Test);
 
+use ZOOM::IRSpy::Utils qw(isodate);
+
 
 sub start {
     my $class = shift();
@@ -32,8 +34,8 @@ sub maybe_connected {
     my $rec = $conn->record();
     $rec->append_entry("irspy:status", "<irspy:probe ok='$ok'>" .
                       isodate(time()) . "</irspy:probe>");
-    $conn->option(pod_omit => 1) if !$ok;
-    return ZOOM::IRSpy::Status::TASK_DONE;
+    return $ok ? ZOOM::IRSpy::Status::TEST_GOOD :
+                ZOOM::IRSpy::Status::TEST_BAD;
 }