From 23b3cd329f010a878375493713e05a9356fb652c Mon Sep 17 00:00:00 2001 From: Michael Woolnough Date: Wed, 21 Aug 2024 15:52:26 +0100 Subject: [PATCH] Kill WR if test is stopped with SIGINT or SIGKILL. --- main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_test.go b/main_test.go index 8dc66695..510fe5e7 100644 --- a/main_test.go +++ b/main_test.go @@ -1546,6 +1546,9 @@ func TestEnd2End(t *testing.T) { " exit ${1:-0}\n"+ "}\n"+ "\n"+ + "trap stop SIGINT\n"+ + "trap stop EXIT\n"+ + "\n"+ "waitForJobs() {\n"+ " until [ $(wr status | wc -l) -le 1 ]; do \n"+ " if [ $(wr status -b | wc -l ) -gt 1 ]; then\n"+