From 178e9af2a2f919aea103cecd0beebb7fa50b47b8 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Fri, 21 Jul 2017 17:29:44 -0700 Subject: [PATCH 1/2] test for node reuse --- .bonnyci/run.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.bonnyci/run.sh b/.bonnyci/run.sh index e7d98cb0..129c37f6 100755 --- a/.bonnyci/run.sh +++ b/.bonnyci/run.sh @@ -1,6 +1,12 @@ #!/bin/bash -xe echo $BONNYCI_TEST_PIPELINE > $BONNYCI_TEST_LOG_DIR/pipeline -dmesg >$BONNYCI_TEST_LOG_DIR/dmesg -sleep 30 -echo "True" \ No newline at end of file + +if [[ -e /tmp/reused ]]; then + echo "NODE REUSED" + cat /tmp/reused + exit 1 +else + env | grep ZUUL >/tmp/reused + exit 0 +fi From 36f84f82e9563e00d2df39256cfca5016867275f Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Fri, 21 Jul 2017 17:32:17 -0700 Subject: [PATCH 2/2] Re-use test ${i} --- 4.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 4.txt diff --git a/4.txt b/4.txt new file mode 100644 index 00000000..b8626c4c --- /dev/null +++ b/4.txt @@ -0,0 +1 @@ +4