HOSTSPEC is
[<ident>=][reuse:]<hostname> host must be allocated, skip host-install
[<ident>=]wipe:<hostname> host must be allocated, wipe it
- [<ident>=]alloc:<resource-spec> \`mg-allocate <resource-spec>', and wipe
+ [<ident>=]alloc:<resource-spec> \`mg-allocate <resource-spec>', and wipe[*]
none: no hosts (should be only HOSTPSEC)
(default <ident> is \`host')
-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)
+ --autoalloc use hosts as for production (specify no HOSTSPECS)
+ and free them afterwards[*]
+
+ [*] If \$OSSTEST_TASK is set on entry, it will be used for these
+ allocations. So, in particular,
+ ./mg-transient-task ./mg-repro-setup .... alloc:...
+ will allocate as specified, but discard the hosts when done.
REBUILD is
--rebuild [-B<blessing>] [-r...]
autoalloc=false
statictask=true
+if [ "x$OSSTEST_TASK" != x ]; then statictask=false; fi
+
while true; do
case "$1" in
-*) ;;
-t?*) duration=${arg#-t} ;;
--rogue) duration='' ;;
--capture) skipcapture=false ;;
+ --autoalloc) autoalloc=true; statictask=false ;;
--autoalloc-nofree) autoalloc=true; statictask=true ;;
-l*) logfile=${arg#-l} ;;
-r^*|-r!*) adjustsets+=("${arg#-r}") ;;
progressf "\n"
if $autoalloc; then
echo >&2 \
- 'warning: --autoalloc-nofree and HOSTSPECs are do not work well together'
+ 'warning: --autoalloc[-nofree] and HOSTSPECs are do not work well together'
fi
fi