1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

selftesthelpers: write warnings to stderr rather than stdout.

This commit is contained in:
Jelmer Vernooij 2011-11-27 19:52:57 +01:00
parent b638abf70a
commit 1caa3b8eae

View File

@ -20,6 +20,7 @@
import os import os
import subprocess import subprocess
import sys
def srcdir(): def srcdir():
return os.path.normpath(os.getenv("SRCDIR", os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))) 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), " ".join(filter_subunit_args),
name) name)
if allow_empty_output: 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): def add_prefix(prefix, support_list=False):
@ -150,7 +151,7 @@ def skiptestsuite(name, reason):
:param reason: Reason the test suite was skipped :param reason: Reason the test suite was skipped
""" """
# FIXME: Report this using subunit, but re-adjust the testsuite count somehow # 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): def planperltestsuite(name, path):