summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_build.sh5
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