From 92cb53ce3be590c63285135ebac3d195372c75d4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 22 Aug 2016 12:17:38 +0200 Subject: fixup d884cb990: reproducible Debian: improve node check to also test whether the node is in an broken state (read-only fs) --- bin/jenkins_node_wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index 1086508d..cd7b3369 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -60,6 +60,8 @@ allowed_cmds=() if [[ "$*" = "/bin/true" ]] ; then exec /bin/true ; croak "Exec failed"; +elif [[ "$*" = "rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)" ]] ; then + exec rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX) ; croak "Exec failed"; elif [[ "$*" = "cleanup_nodes /srv/jenkins/bin/reproducible_slay.sh" ]] ; then exec /srv/jenkins/bin/reproducible_slay.sh ; croak "Exec failed"; elif [[ "$*" =~ ^/bin/nc\ localhost\ 4949 ]] ; then -- cgit v1.2.3-70-g09d2