mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-02-26 18:35:50 +01:00
Run testrunner in its own process group
This commit is contained in:
@@ -24,6 +24,15 @@
|
||||
#
|
||||
# ----------------------------------------------------------
|
||||
|
||||
pgid=$(ps -o pgid= $$)
|
||||
if [[ $pgid -ne $$ ]]; then
|
||||
if [[ $(uname -s) == "Darwin" ]]; then
|
||||
exec script -q /dev/null $0 $*
|
||||
else
|
||||
exec setsid $0 $*
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]; then
|
||||
declare -i counter=0
|
||||
for color in Black Red Green Yellow Blue Magenta Cyan White; do
|
||||
|
||||
Reference in New Issue
Block a user