[Qa-jenkins-scm] [jenkins.debian.net] 01/01: cope with machines with multiple network interfaces

Holger Levsen holger at layer-acht.org
Wed Aug 3 21:52:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit f9076b64f18cee60495cc8cb47cf0c2f9f676c35
Author: Philip Hands <phil at hands.com>
Date:   Wed Aug 3 23:49:42 2016 +0200

    cope with machines with multiple network interfaces
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_maintenance.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 4e315fa..9efc1f6 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -45,7 +45,7 @@ fi
 echo "$(date -u) - testing whether the proxy works..."
 curl http://www.debian.org > /dev/null
 echo "$(date -u) - testing whether the network interfaces MTU is 1500..."
-if [ "$(ip link | sed -n '/LOOPBACK/!s/.* mtu \([0-9]*\) .*/\1/p')" != "1500" ] ; then
+if [ "$(ip link | sed -n '/LOOPBACK/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then
 	ip link
 	echo "$(date -u) - network interfaces MTU != 1500 - this is wrong."
 	exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list