|
@@ -12,9 +12,6 @@ export CHUTNEY_ROUNDS=${CHUTNEY_ROUNDS:-1}
|
|
|
export CHUTNEY_WARNINGS_IGNORE_EXPECTED=${CHUTNEY_WARNINGS_IGNORE_EXPECTED:-true}
|
|
|
export CHUTNEY_WARNINGS_SUMMARY=${CHUTNEY_WARNINGS_SUMMARY:-true}
|
|
|
|
|
|
-# default to exiting when this script exits
|
|
|
-export CHUTNEY_CONTROLLING_PID=${CHUTNEY_CONTROLLING_PID:-$$}
|
|
|
-
|
|
|
# default to allowing zero failures
|
|
|
export CHUTNEY_ALLOW_FAILURES=${CHUTNEY_ALLOW_FAILURES:-0}
|
|
|
|
|
@@ -192,6 +189,16 @@ do
|
|
|
shift
|
|
|
done
|
|
|
|
|
|
+if [ -z "$CHUTNEY_CONTROLLING_PID" ]; then
|
|
|
+ # if not set, default to exiting when this script exits
|
|
|
+ CHUTNEY_CONTROLLING_PID=$$
|
|
|
+ if { [ "$CHUTNEY_START_TIME" ] && [ "$CHUTNEY_START_TIME" -lt 0 ]]; } ||
|
|
|
+ { [ "$CHUTNEY_BOOTSTRAP_TIME" ] && [ "$CHUTNEY_BOOTSTRAP_TIME" -lt 0 ]; } ||
|
|
|
+ { [ "$CHUTNEY_STOP_TIME" ] && [ "$CHUTNEY_STOP_TIME" -lt 0 ];} ; then
|
|
|
+ CHUTNEY_CONTROLLING_PID=0
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
# If the DNS server doesn't work, tor exits may reject all exit traffic, and
|
|
|
# chutney may fail
|
|
|
if [ "$CHUTNEY_WARNINGS_ONLY" != true ]; then
|