s4-selftest: Ignore broken pipe error from grep.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 28 Nov 2010 03:58:52 +0000 (04:58 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 28 Nov 2010 04:45:05 +0000 (05:45 +0100)
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 28 05:45:05 CET 2010 on sn-devel-104

source4/selftest/tests.py

index 1d95ad2d9fc8e6889c763670dd32d3a0bfa7c6a3..180f0896426a8270ae0d97bc7fd66033bb5dac1a 100755 (executable)
@@ -150,7 +150,7 @@ if sub.returncode != 0:
     tap2subunit = "PYTHONPATH=%s/../lib/subunit/python:%s/../lib/testtools %s %s/../lib/subunit/filters/tap2subunit" % (samba4srcdir, samba4srcdir, python, samba4srcdir)
 else:
     cmd = "echo -ne \"1..1\nok 1 # skip doesn't seem to work yet\n\" | tap2subunit 2> /dev/null | grep skip"
-    sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, shell=True)
+    sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
     if sub.returncode == 0:
         tap2subunit = "tap2subunit"
     else: