Properly record timed out builds
This corrects a logic error where timed out builds were recorded as
ABORTED. They should be recored as TIMED_OUT instead. Update the tests
which asserted the incorrect result as well.
Change-Id: Ibc07a87a42dbd8de3ae78dfeedc5c8260c9c0153
diff --git a/tests/unit/test_v3.py b/tests/unit/test_v3.py
index 678b957..3919418 100644
--- a/tests/unit/test_v3.py
+++ b/tests/unit/test_v3.py
@@ -264,7 +264,7 @@
self.fake_gerrit.addEvent(A.getPatchsetCreatedEvent(1))
self.waitUntilSettled()
build = self.getJobFromHistory('timeout')
- self.assertEqual(build.result, 'ABORTED')
+ self.assertEqual(build.result, 'TIMED_OUT')
build = self.getJobFromHistory('faillocal')
self.assertEqual(build.result, 'FAILURE')
build = self.getJobFromHistory('check-vars')