#
# --info-base=<info> Replaces `manual' at start of info put into plan.
#
+# --progress-fd=<fd> Print some brief progress messages to <fd>.
+#
# <task-spec> must exist (and be in a format valid for OSSTEST_TASK).
# This is part of "osstest", an automated testing framework for Xen.
use Osstest;
use Osstest::TestSupport;
use Osstest::Executive;
+use IO::Handle;
csreadconfig();
logm("best at $planned->{Start} is ".showposs(\@reqlist));
die unless $planned;
+ printf MGA_PROGRESS "%s %s @%d %s\n",
+ (show_abs_time time),
+ ($mayalloc && !$planned->{Start} ? "allocating" : "planned"),
+ $planned->{Start},
+ showposs(\@reqlist);
+
my $worstok=0;
if ($mayalloc && !$planned->{Start}) {
$worstok=1;
loggot(@got);
}
+open MGA_PROGRESS, ">/dev/null" or die $!;
+
while (@ARGV && $ARGV[0] =~ m/^[-0-9]/) {
$_= shift @ARGV;
last if m/^\-\-?$/;
$allocinfo_base = $1;
} elsif (s/^--stdout-output$/-/) {
$stdout_output = 1;
+ } elsif (s/^--progress-fd=(\d+)$/-/) {
+ open MGA_PROGRESS, ">&$1" or die $!;
+ MGA_PROGRESS->autoflush(1);
} else {
die "bad option \`$_'";
}