From d884cb990a577909696bf0d501e68cfff4db7602 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 22 Aug 2016 12:10:23 +0200 Subject: 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(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 24b47279..3b041ce9 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 -- cgit v1.2.3-70-g09d2