%jobs_created is used for memoisation while populating the destination
flight. We need to reset it when we restart flight construction,
because those jobs were created in the discarded transaction.
Otherwise we could create a flight with missing jobs.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
db_retry($popflight,'constructing', $dbh_tests,[qw(flights)], sub {
print STDERR "Populating $popflight...\n";
+ undef %jobs_created;
preparejob($job, $latest_flight, 0);
foreach my $hostspec (split /,/, $hosts) { # /
$hostspec =~ m/=/;