]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
duration_estimator: Explicitly provide null in general host q
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 21 Jul 2020 14:22:28 +0000 (15:22 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 6 Aug 2020 09:23:19 +0000 (10:23 +0100)
Our spec. says we return nulls for started and status if we don't find
a job matching the host spec.

The way this works right now is that we look up the nonexistent
entries in $refs->[0].  This is not really brilliant and is going to
be troublesome as we continue to refactor.

Provide these values explicitly.  No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Executive.pm

index 4cb22cc938e3eecf1111c101ba7bbfb5ebf887cb..d45d6557574178175726af55e0f7a73c60b3a765 100644 (file)
@@ -1169,6 +1169,8 @@ END
 
     my $duration_anyref_qtxt= <<END;
             SELECT f.flight AS flight,
+                   NULL as started,
+                   NULL as status,
                    max(s.finished) AS max_finished
                      FROM steps s JOIN flights f
                        ON s.flight=f.flight