-r!<var> delete runvar
-B<blessing> default is 'play'
-E... -f... -P as for mg-execute-flight
-
+ --autoalloc-nofree allocate hosts as for production, but keep them
+ (specify no HOSTSPECS; remember to deallocate later)
END
}
duration=28d
blessing=play
skipcapture=true
+autoalloc=false
while true; do
case "$1" in
-t?*) duration=${arg#-t} ;;
--rogue) duration='' ;;
--capture) skipcapture=false ;;
+ --autoalloc-nofree) autoalloc=true ;;
-l*) logfile=${arg#-l} ;;
-r!*) adjustsets+=("${arg#-r}") ;;
-r*=*) adjustsets+=("${arg#-r}") ;;
done
case $# in
-0|1|2|3) badusage ;;
+0|1|2) badusage ;;
+3) $autoalloc || badusage ;;
esac
example_flight=$1 ; shift
progressf " %s" "$host"
done
progressf "\n"
+ if $autoalloc; then
+ echo >&2 \
+ 'warning: --autoalloc-nofree and HOSTSPECs are do not work well together'
+ fi
fi
progress "setting up flight ..."
progress "executing ..."
-OSSTEST_NOALLOCATE=1 \
+if ! $autoalloc; then
+ export OSSTEST_NOALLOCATE=1
+fi
+
./mg-execute-flight -B$blessing -f$refflight --progress-fd=2 \
"${mgexecflags[@]}" $flight