1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
Description: skip tests that try to access the outside network
Accessing network during a build is considered a privacy leak and thus not
welcome in Debian
Author: Mattia Rizzolo <mattia@debian.org>
Bug-Debian: https://bugs.debian.org/830218
Forwarded: not-needed
Last-Update: 2017-10-04
--- a/tests/choose/0001
+++ b/tests/choose/0001
@@ -7,6 +7,10 @@
# without any warranty.
echo=`which echo`
+# in Debian we don't like build processes to try to access non-localhost networks
+# skip this test
+exit 77
+
# if there is no network available during the build, skip the test
ping -q -c 1 debian.org 2>&1 /dev/null
if [ ! $? -eq 0 ] ; then
--- a/tests/choose/0002
+++ b/tests/choose/0002
@@ -7,6 +7,10 @@
# without any warranty.
echo=`which echo`
+# in Debian we don't like build processes to try to access non-localhost networks
+# skip this test
+exit 77
+
# if there is no network available during the build, skip the test
ping -q -c 1 debian.org 2>&1 /dev/null
if [ ! $? -eq 0 ] ; then
--- a/tests/preview/0001
+++ b/tests/preview/0001
@@ -6,6 +6,10 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+# in Debian we don't like build processes to try to access non-localhost networks
+# skip this test
+exit 77
+
#here is what we expect
expected=`mktemp $builddir/licensing.XXXXXX`
cat << EOF > $expected
|