[Python-modules-commits] r30574 - in packages/mod-wsgi/trunk/debian/tests (4 files)

fgeyer at users.alioth.debian.org fgeyer at users.alioth.debian.org
Wed Sep 10 09:31:55 UTC 2014


    Date: Wednesday, September 10, 2014 @ 09:31:54
  Author: fgeyer
Revision: 30574

Print more verbose output on autopkgtest failures.

Modified:
  packages/mod-wsgi/trunk/debian/tests/daemon-py2
  packages/mod-wsgi/trunk/debian/tests/daemon-py3
  packages/mod-wsgi/trunk/debian/tests/embedded-py2
  packages/mod-wsgi/trunk/debian/tests/embedded-py3

Modified: packages/mod-wsgi/trunk/debian/tests/daemon-py2
===================================================================
--- packages/mod-wsgi/trunk/debian/tests/daemon-py2	2014-09-10 07:17:56 UTC (rev 30573)
+++ packages/mod-wsgi/trunk/debian/tests/daemon-py2	2014-09-10 09:31:54 UTC (rev 30574)
@@ -29,5 +29,18 @@
 a2enmod wsgi
 service apache2 reload
 
-output=`wget -O- http://localhost/wsgi-daemon-py2/ 2>/dev/null`
-test "$output" = "Hello World"
+if ! output=`wget -O- http://localhost/wsgi-daemon-py2/ 2>/dev/null`; then
+  echo "wget failed, output was:"
+  echo "$output"
+  echo
+  echo "Retest:"
+  wget -O- http://localhost/wsgi-daemon-py2/
+  exit 1
+else
+  if [ "$output" != "Hello World" ]; then
+    echo "output is wrong"
+    echo "got:      | $output |"
+    echo "expected: | Hello World |"
+    exit 1
+  fi
+fi

Modified: packages/mod-wsgi/trunk/debian/tests/daemon-py3
===================================================================
--- packages/mod-wsgi/trunk/debian/tests/daemon-py3	2014-09-10 07:17:56 UTC (rev 30573)
+++ packages/mod-wsgi/trunk/debian/tests/daemon-py3	2014-09-10 09:31:54 UTC (rev 30574)
@@ -29,5 +29,18 @@
 a2enmod wsgi
 service apache2 reload
 
-output=`wget -O- http://localhost/wsgi-daemon-py3/ 2>/dev/null`
-test "$output" = "Hello World"
+if ! output=`wget -O- http://localhost/wsgi-daemon-py3/ 2>/dev/null`; then
+  echo "wget failed, output was:"
+  echo "$output"
+  echo
+  echo "Retest:"
+  wget -O- http://localhost/wsgi-daemon-py3/
+  exit 1
+else
+  if [ "$output" != "Hello World" ]; then
+    echo "output is wrong"
+    echo "got:      | $output |"
+    echo "expected: | Hello World |"
+    exit 1
+  fi
+fi

Modified: packages/mod-wsgi/trunk/debian/tests/embedded-py2
===================================================================
--- packages/mod-wsgi/trunk/debian/tests/embedded-py2	2014-09-10 07:17:56 UTC (rev 30573)
+++ packages/mod-wsgi/trunk/debian/tests/embedded-py2	2014-09-10 09:31:54 UTC (rev 30574)
@@ -23,5 +23,18 @@
 a2enmod wsgi
 service apache2 reload
 
-output=`wget -O- http://localhost/wsgi-embedded-py2/ 2>/dev/null`
-test "$output" = "Hello World"
+if ! output=`wget -O- http://localhost/wsgi-embedded-py2/ 2>/dev/null`; then
+  echo "wget failed, output was:"
+  echo "$output"
+  echo
+  echo "Retest:"
+  wget -O- http://localhost/wsgi-embedded-py2/
+  exit 1
+else
+  if [ "$output" != "Hello World" ]; then
+    echo "output is wrong"
+    echo "got:      | $output |"
+    echo "expected: | Hello World |"
+    exit 1
+  fi
+fi

Modified: packages/mod-wsgi/trunk/debian/tests/embedded-py3
===================================================================
--- packages/mod-wsgi/trunk/debian/tests/embedded-py3	2014-09-10 07:17:56 UTC (rev 30573)
+++ packages/mod-wsgi/trunk/debian/tests/embedded-py3	2014-09-10 09:31:54 UTC (rev 30574)
@@ -23,5 +23,18 @@
 a2enmod wsgi
 service apache2 reload
 
-output=`wget -O- http://localhost/wsgi-embedded-py3/ 2>/dev/null`
-test "$output" = "Hello World"
+if ! output=`wget -O- http://localhost/wsgi-embedded-py3/ 2>/dev/null`; then
+  echo "wget failed, output was:"
+  echo "$output"
+  echo
+  echo "Retest:"
+  wget -O- http://localhost/wsgi-embedded-py3/
+  exit 1
+else
+  if [ "$output" != "Hello World" ]; then
+    echo "output is wrong"
+    echo "got:      | $output |"
+    echo "expected: | Hello World |"
+    exit 1
+  fi
+fi




More information about the Python-modules-commits mailing list