[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: improve node check to also test whether the node is in an broken state (read-only fs)

Holger Levsen holger at layer-acht.org
Mon Aug 22 10:10:55 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 d884cb990a577909696bf0d501e68cfff4db7602
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Aug 22 12:10:23 2016 +0200

    reproducible Debian: improve node check to also test whether the node is in an broken state (read-only fs)
---
 bin/reproducible_build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 24b4727..3b041ce 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -681,11 +681,14 @@ EOF
 }
 
 check_node_is_up() {
+	# this actually tests two things:
+	# - ssh login works
+	# - /tmp is not mounted in read-only mode
 	local NODE=$1
 	local PORT=$2
 	local SLEEPTIME=$3
 	set +e
-	ssh -o "BatchMode = yes" -p $PORT $NODE /bin/true
+	ssh -o "BatchMode = yes" -p $PORT $NODE 'rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)'
 	RESULT=$?
 	# abort job if host is down
 	if [ $RESULT -ne 0 ] ; then

-- 
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