From 4fc779faa236cb561f493781ea7a7a61e274dc1e Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Mon, 10 Jul 2023 18:46:14 +0200 Subject: [PATCH] make chutney setup script more portable --- tests/chutney/setup | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/chutney/setup b/tests/chutney/setup index fd18f943a..3837c378d 100755 --- a/tests/chutney/setup +++ b/tests/chutney/setup @@ -121,11 +121,9 @@ for idx in $(seq 30); do # shellcheck disable=SC1091 source tests/chutney/arti.run pid="${pid:?}" - if [ ! -d "/proc/$pid" ]; then + if ! kill -0 "$pid"; then result="${result:?}" echo "Arti failed to start with code $result" exit 1 fi done - -