[autotest] add invalidate_test_idx and invalid to tko_test_view_2
Expose invalid and invalidate_test_idx in tko_test_view_2.
This is part of the changes to make run_suite understand
which tests are retries.
CQ-DEPEND=CL:197306
BUG=chromium:353169
TEST=unittests; integration test with CL:199173
1) Add "JOB_RETRIES=2" to dummy_Fail/control
Create a trybot image that has the change.
2) run_suite.py -b lumpy -s dummy -i
trybot-lumpy-release/R35-5653.0.0-b1948
3) Observe that dummy_Fail is retried twice and only the last
job's result was output by run_suite.
DEPLOY=apache, migrate
Change-Id: I5b9133e062c549f7ada7ae70ac0ade02b78e96f9
Reviewed-on: https://chromium-review.googlesource.com/198284
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
diff --git a/frontend/tko/models.py b/frontend/tko/models.py
index 286279b..af88dee 100644
--- a/frontend/tko/models.py
+++ b/frontend/tko/models.py
@@ -739,6 +739,8 @@
kernel_base = dbmodels.CharField(blank=True, max_length=90)
kernel = dbmodels.CharField(blank=True, max_length=300)
status = dbmodels.CharField(blank=True, max_length=30)
+ invalid = dbmodels.BooleanField(blank=True)
+ invalidates_test_idx = dbmodels.IntegerField(null=True, blank=True)
objects = TestViewManager()