summaryrefslogtreecommitdiff
path: root/debian/patches/tests-ignore-warnings.patch
blob: 9fbae9514aa503f704bc9918e70754c829134829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Ignore warnings from colord and Avahi in the tests, as they change the expected number of warnings.
Author: Martin Pitt <mpitt@debian.org>
Last-Update: 2014-01-09

--- a/test/run-stp-tests.sh
+++ b/test/run-stp-tests.sh
@@ -912,7 +912,7 @@
 fi
 
 # Warning log messages
-count=`$GREP '^W ' /tmp/cups-$user/log/error_log | $GREP -v CreateProfile | wc -l | awk '{print $1}'`
+count=`$GREP '^W ' /tmp/cups-$user/log/error_log | $GREP -v CreateProfile | $GREP -v 'Unable to initialize USB access via libusb, libusb error' | $GREP -v 'org.freedesktop.ColorManager' | $GREP -v -E 'Avahi client failed: -(1|26)' | wc -l | awk '{print $1}'`
 if test $count != 9; then
 	echo "FAIL: $count warning messages, expected 9."
 	$GREP '^W ' /tmp/cups-$user/log/error_log