selftesthelpers: write warnings to stderr rather than stdout.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 27 Nov 2011 18:52:57 +0000 (19:52 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 30 Nov 2011 21:58:04 +0000 (22:58 +0100)
selftest/selftesthelpers.py

index 0cfcb69a04061c3666a1ef05d5f8c7e87aec157e..fc81c63664e2ac28d27a0ff3d93db4cda71b18c8 100644 (file)
@@ -20,6 +20,7 @@
 
 import os
 import subprocess
+import sys
 
 def srcdir():
     return os.path.normpath(os.getenv("SRCDIR", os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")))
@@ -105,7 +106,7 @@ def plantestsuite(name, env, cmdline, allow_empty_output=False):
                                                                         " ".join(filter_subunit_args),
                                                                         name)
     if allow_empty_output:
-        print "WARNING: allowing empty subunit output from %s" % name
+        print >>sys.stderr, "WARNING: allowing empty subunit output from %s" % name
 
 
 def add_prefix(prefix, support_list=False):
@@ -150,7 +151,7 @@ def skiptestsuite(name, reason):
     :param reason: Reason the test suite was skipped
     """
     # FIXME: Report this using subunit, but re-adjust the testsuite count somehow
-    print "skipping %s (%s)" % (name, reason)
+    print >>sys.stderr, "skipping %s (%s)" % (name, reason)
 
 
 def planperltestsuite(name, path):