summaryrefslogtreecommitdiffstats
path: root/bin/jenkins_node_wrapper.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-08-22 12:17:38 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-22 12:17:38 +0200
commit92cb53ce3be590c63285135ebac3d195372c75d4 (patch)
tree2fe538fc634c4fa5828269676881845ee54434f0 /bin/jenkins_node_wrapper.sh
parentd884cb990a577909696bf0d501e68cfff4db7602 (diff)
downloadjenkins.debian.net-92cb53ce3be590c63285135ebac3d195372c75d4.tar.xz
fixup d884cb990: reproducible Debian: improve node check to also test whether the node is in an broken state (read-only fs)
Diffstat (limited to 'bin/jenkins_node_wrapper.sh')
-rwxr-xr-xbin/jenkins_node_wrapper.sh2
1 files changed, 2 insertions, 0 deletions
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