Skip to content

Commit a215104

Browse files
committed
Run testrunner in its own process group
1 parent 26a141b commit a215104

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/testrunner.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
#
2525
# ----------------------------------------------------------
2626

27+
pgid=$(ps -o pgid= $$)
28+
if [[ $pgid -ne $$ ]]; then
29+
if [[ $(uname -s) == "Darwin" ]]; then
30+
exec script -q /dev/null $0 $*
31+
else
32+
exec setsid $0 $*
33+
fi
34+
fi
35+
2736
if [[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]; then
2837
declare -i counter=0
2938
for color in Black Red Green Yellow Blue Magenta Cyan White; do

0 commit comments

Comments
 (0)