diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-08-22 12:10:23 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-22 12:10:23 +0200 |
commit | d884cb990a577909696bf0d501e68cfff4db7602 (patch) | |
tree | f22291559c9c3ac36faea96f2d0475da3c9d7505 /bin | |
parent | ff3155de6dbcf05ae9276d4f9ced1ec35bc3703f (diff) | |
download | jenkins.debian.net-d884cb990a577909696bf0d501e68cfff4db7602.tar.xz |
reproducible Debian: improve node check to also test whether the node is in an broken state (read-only fs)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |