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 a5e7e49e682d3f1663c99c9a8e6f3d3b77007c09 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Fri, 21 Jul 2017 17:32:21 -0700 Subject: [PATCH 2/2] Re-use test ${i} --- 5.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 5.txt diff --git a/5.txt b/5.txt new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/5.txt @@ -0,0 +1 @@ +5