Honour OSSTEST_HOSTSLIST_DUMMY, to cause cs-hosts-list to produce
dummy output. This means that standalone-generate-dump-flight-runvars
can now try generating flights whose contents depend on the host
database, and which are therefore normally only useable in Executive
mode.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
@ARGV == 1 or die $!;
my ($flags) = @ARGV;
+my $o;
+
+if ($ENV{'OSSTEST_HOSTSLIST_DUMMY'}) {
+ $o .= "SOMEHOST";
+ if (@arches) {
+ $o .= " $kernels[0]";
+ $o .= " {".join(',',@arches)."}";
+ }
+ if (@suites) {
+ $o .= " $suites[0]";
+ }
+ $o .= "\n";
+ print $o or die $!;
+ exit 0;
+}
+
my @qargs;
my $qtxt= <<END;
SELECT resname
WHERE hostname=? AND hostflag=?
END
-my $o;
-
sub report_arch ($) {
my ($host) = @_;
foreach my $kernel (@kernels) {
: ${AP_FETCH_PLACEHOLDERS:=y}
export AP_FETCH_PLACEHOLDERS
+export OSSTEST_HOSTSLIST_DUMMY=1
if [ "x$AP_FETCH_PLACEHOLDERS" != xy ]; then
if [ "x$AP_FETCH_MEMO_KEEP" = x ]; then