# -U allocate with high priority (makes sense with
# specified duration only)
#
+# --as <task-spec>
+# Run as the task <task-spec> (rather than looking
+# at OSSTEST_TASK). Allocation will allocate
+# resources to <task-spec> and deallocate will free
+# resources owned by <task-spec>
+#
# --steal <task-spec>
# Treat resources owned by the task <task-spec>
# as if they were free. This allows us to steal
1);
} elsif (s/^\-U/-/) {
$ENV{OSSTEST_RESOURCE_PRIORITY} //= -1000000;
+ } elsif (s/^--as$/-/) {
+ die "--as needs task\n" unless @ARGV;
+ $ENV{OSSTEST_TASK} = shift @ARGV;
} elsif (s/^--steal$/-/) {
die "--steal needs task\n" unless @ARGV;
push @steal_specs, shift @ARGV;