summaryrefslogtreecommitdiff
path: root/debian/patches/tests-ignore-usb-crash.patch
blob: af863c2a5381aca5ae064451e32b886e17299c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Ignore
 "[cups-deviced] PID * (usb) crashed on signal 11!" and
 "[cups-deviced] PID * (dnssd) stopped with status 1"
 errors in the log during the test suite. This seems to regularly happen
 on Debian/Ubuntu buildds.
Author: Martin Pitt <mpitt@debian.org>
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2013-01-09

--- a/test/run-stp-tests.sh
+++ b/test/run-stp-tests.sh
@@ -897,7 +897,7 @@
 fi
 
 # Error log messages
-count=`$GREP '^E ' /tmp/cups-$user/log/error_log | wc -l | awk '{print $1}'`
+count=`$GREP '^E ' /tmp/cups-$user/log/error_log | $GREP -v '(usb) crashed on signal 11' | $GREP -v '(dnssd) stopped with status 1' | wc -l | awk '{print $1}'`
 if test $count != 33; then
 	echo "FAIL: $count error messages, expected 33."
 	$GREP '^E ' /tmp/cups-$user/log/error_log