diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-11-27 19:52:57 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-11-30 22:58:04 +0100 |
commit | 1caa3b8eaea10c342d0dd60e2bfe43221922e8d3 (patch) | |
tree | 651860648f04eb8877d19c8bd3c2e512b2f6e7ec /selftest | |
parent | b638abf70a3c9b2815344454946c0931295551be (diff) | |
download | samba-1caa3b8eaea10c342d0dd60e2bfe43221922e8d3.tar.gz samba-1caa3b8eaea10c342d0dd60e2bfe43221922e8d3.tar.bz2 samba-1caa3b8eaea10c342d0dd60e2bfe43221922e8d3.zip |
selftesthelpers: write warnings to stderr rather than stdout.
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/selftesthelpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index 0cfcb69a04..fc81c63664 100644 --- a/selftest/selftesthelpers.py +++ b/selftest/selftesthelpers.py @@ -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): |