}
die unless ref($flok) eq 'ARRAY';
- my ($bless) = $dbh_tests->selectrow_array(<<END, {}, $fl);
- SELECT blessing FROM flights WHERE flight=?
+ my ($bless, $intended) = $dbh_tests->selectrow_array(<<END, {}, $fl);
+ SELECT blessing, intended FROM flights WHERE flight=?
END
die "modifying flight $fl but flight not found\n"
unless defined $bless;
- unless ($bless =~ m/\bplay\b/) {
+ unless ($bless =~ m/\bplay\b/ || $intended =~ m/\bplay\b/) {
die "modifying flight $fl blessing $bless expected @$flok\n"
unless grep { $_ eq $bless } @$flok;
}
time.
There is a special exception to the tools' flight status checks: any
-flight whose blessing contains `play' can be operated on out of order.
+flight whose blessing (or intended blessing) contains `play' can be
+operated on out of order.