[OSSTEST PATCH v2 06/41] sg-report-flight: Sort failures by job name as last resort

Ian Jackson posted 41 patches 5 years, 6 months ago
[OSSTEST PATCH v2 06/41] sg-report-flight: Sort failures by job name as last resort
Posted by Ian Jackson 5 years, 6 months ago
This removes some nondeterminism from the output.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 sg-report-flight | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sg-report-flight b/sg-report-flight
index fc439495..7f2790ce 100755
--- a/sg-report-flight
+++ b/sg-report-flight
@@ -813,6 +813,7 @@ END
 	# they finished in the same second, we pick the lower-numbered
 	# step, which is the earlier one (if they are sequential at
 	# all).
+	or $a->{Job} cmp $b->{Job}
     }
         @failures;
 
-- 
2.20.1