From a6f316bc45ef21b0517c91e4647edb087836ce42 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Tue, 9 Aug 2016 18:11:21 +0200 Subject: [PATCH] Tests: Use 127.0.0.1 instead of localhost to help pbuilder This should make the test-suite work in pbuilder. It apparently also fixes an ipp backend problem in the test-suite. Origin: vendor Patch-Name: tests-use-ipv4-lo-address.patch Gbp-Pq: Name 0014-Tests-Use-127.0.0.1-instead-of-localhost-to-help-pbu.patch --- test/5.1-lpadmin.sh | 4 ++-- test/run-stp-tests.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/5.1-lpadmin.sh b/test/5.1-lpadmin.sh index 7efc398..08b8c50 100644 --- a/test/5.1-lpadmin.sh +++ b/test/5.1-lpadmin.sh @@ -52,8 +52,8 @@ echo "" echo "Add Shared Printer Test" echo "" -echo " lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere" -$runcups $VALGRIND ../systemv/lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere 2>&1 +echo " lpadmin -p Test3 -E -v ipp://127.0.0.1:$IPP_PORT/printers/Test2 -m everywhere" +$runcups $VALGRIND ../systemv/lpadmin -p Test3 -E -v ipp://127.0.0.1:$IPP_PORT/printers/Test2 -m everywhere 2>&1 if test $? != 0; then echo " FAILED" exit 1 diff --git a/test/run-stp-tests.sh b/test/run-stp-tests.sh index 173fc86..88bafb1 100755 --- a/test/run-stp-tests.sh +++ b/test/run-stp-tests.sh @@ -490,7 +490,7 @@ fi cat >$BASE/cupsd.conf <>$strfile if test $file = ../examples/ipp-2.1.test; then - uri="ipp://localhost:$port/printers/Test1" + uri="ipp://127.0.0.1:$port/printers/Test1" options="-V 2.1 -d NOPRINT=1 -f testfile.ps" else - uri="ipp://localhost:$port/printers" + uri="ipp://127.0.0.1:$port/printers" options="" fi $runcups $VALGRIND ../tools/ipptool -tI $options $uri $file >> $strfile