Skip to content

Commit 5cc9f37

Browse files
committed
Update parallel_tests.mdx
1 parent 8f8eeda commit 5cc9f37

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docusaurus/docs/ruby/parallel_tests.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ Create `bin/parallel_tests` and make it executable `chmod u+x`:
8787
#!/bin/bash
8888

8989
handle_signal() {
90-
local signal=$1
91-
if [[ -n $knapsack_pro_pid ]]; then
92-
echo "KNAPSACK_PRO_CI_NODE_INDEX=$KNAPSACK_PRO_CI_NODE_INDEX Received signal $signal in bin/parallel_tests, terminating the Knapsack Pro process with TERM"
93-
kill -TERM $knapsack_pro_pid
94-
echo "KNAPSACK_PRO_CI_NODE_INDEX=$KNAPSACK_PRO_CI_NODE_INDEX Waiting for the Knapsack Pro process with PID $knapsack_pro_pid to terminate"
95-
wait $knapsack_pro_pid
96-
fi
90+
local signal=$1
91+
if [[ -n $knapsack_pro_pid ]]; then
92+
echo "KNAPSACK_PRO_CI_NODE_INDEX=$KNAPSACK_PRO_CI_NODE_INDEX Received signal $signal in bin/parallel_tests, terminating the Knapsack Pro process with TERM"
93+
kill -TERM $knapsack_pro_pid
94+
echo "KNAPSACK_PRO_CI_NODE_INDEX=$KNAPSACK_PRO_CI_NODE_INDEX Waiting for the Knapsack Pro process with PID $knapsack_pro_pid to terminate"
95+
wait $knapsack_pro_pid
96+
fi
9797
}
9898

9999
trap 'handle_signal TERM' TERM

0 commit comments

Comments
 (0)