We are going to want to replace the existing @hostvarcols
calculation. Provide a new one based on $ri->{Hosts}.
Right now, die if they don't produce the same answers. This still
works, which shows that the calculation is right.
Tested-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
push @test_rows, $ri;
}
+ my %hostvarnames;
+ foreach my $ri (@test_rows) {
+ $hostvarnames{$_}=1 foreach keys %{ $ri->{Hosts} }
+ }
+ my @hostvarcols2 = sort keys %hostvarnames;
+ die unless "@hostvarcols" eq "@hostvarcols2";
+
my $osstestverq= db_prepare(<<END);
SELECT DISTINCT harness
FROM flights_harness_touched