Commit 491fc3e9 authored by Michal Majewski's avatar Michal Majewski Committed by Commit Bot

[test] Remove PASS_OR_FAIL and TIMEOUT statusfile outcomes.

Bug: v8:6917
Change-Id: I767e5b0fa2bfef73feb3e0bc568c00d22424afa8
Reviewed-on: https://chromium-review.googlesource.com/782560Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Michał Majewski <majeski@google.com>
Cr-Commit-Position: refs/heads/master@{#49578}
parent ca4a23ff
...@@ -43,18 +43,16 @@ FAST_VARIANTS = "FAST_VARIANTS" ...@@ -43,18 +43,16 @@ FAST_VARIANTS = "FAST_VARIANTS"
NO_VARIANTS = "NO_VARIANTS" NO_VARIANTS = "NO_VARIANTS"
# These are just for the status files and are mapped below in DEFS: # These are just for the status files and are mapped below in DEFS:
FAIL_OK = "FAIL_OK" FAIL_OK = "FAIL_OK"
PASS_OR_FAIL = "PASS_OR_FAIL" # TODO(majeski): unused in status files
FAIL_SLOPPY = "FAIL_SLOPPY" FAIL_SLOPPY = "FAIL_SLOPPY"
ALWAYS = "ALWAYS" ALWAYS = "ALWAYS"
KEYWORDS = {} KEYWORDS = {}
for key in [SKIP, FAIL, PASS, OKAY, CRASH, SLOW, FAIL_OK, for key in [SKIP, FAIL, PASS, OKAY, CRASH, SLOW, FAIL_OK,
FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, FAIL_SLOPPY, ALWAYS]: FAST_VARIANTS, NO_VARIANTS, FAIL_SLOPPY, ALWAYS]:
KEYWORDS[key] = key KEYWORDS[key] = key
DEFS = {FAIL_OK: [FAIL, OKAY], DEFS = {FAIL_OK: [FAIL, OKAY]}
PASS_OR_FAIL: [PASS, FAIL]}
# Support arches, modes to be written as keywords instead of strings. # Support arches, modes to be written as keywords instead of strings.
VARIABLES = {ALWAYS: True} VARIABLES = {ALWAYS: True}
......
...@@ -35,7 +35,6 @@ from . import statusfile ...@@ -35,7 +35,6 @@ from . import statusfile
REPORT_TEMPLATE = ( REPORT_TEMPLATE = (
"""Total: %(total)i tests """Total: %(total)i tests
* %(skipped)4d tests will be skipped * %(skipped)4d tests will be skipped
* %(timeout)4d tests are expected to timeout sometimes
* %(nocrash)4d tests are expected to be flaky but not crash * %(nocrash)4d tests are expected to be flaky but not crash
* %(pass)4d tests are expected to pass * %(pass)4d tests are expected to pass
* %(fail_ok)4d tests are expected to fail that we won't fix * %(fail_ok)4d tests are expected to fail that we won't fix
...@@ -44,7 +43,7 @@ REPORT_TEMPLATE = ( ...@@ -44,7 +43,7 @@ REPORT_TEMPLATE = (
def PrintReport(tests): def PrintReport(tests):
total = len(tests) total = len(tests)
skipped = timeout = nocrash = passes = fail_ok = fail = 0 skipped = nocrash = passes = fail_ok = fail = 0
for t in tests: for t in tests:
outcomes = t.suite.GetOutcomesForTestCase(t) outcomes = t.suite.GetOutcomesForTestCase(t)
if not outcomes: if not outcomes:
...@@ -53,8 +52,6 @@ def PrintReport(tests): ...@@ -53,8 +52,6 @@ def PrintReport(tests):
if statusfile.DoSkip(outcomes): if statusfile.DoSkip(outcomes):
skipped += 1 skipped += 1
continue continue
if statusfile.TIMEOUT in outcomes:
timeout += 1
if statusfile.IsPassOrFail(outcomes): if statusfile.IsPassOrFail(outcomes):
nocrash += 1 nocrash += 1
if list(outcomes) == [statusfile.PASS]: if list(outcomes) == [statusfile.PASS]:
...@@ -67,7 +64,6 @@ def PrintReport(tests): ...@@ -67,7 +64,6 @@ def PrintReport(tests):
print REPORT_TEMPLATE % { print REPORT_TEMPLATE % {
"total": total, "total": total,
"skipped": skipped, "skipped": skipped,
"timeout": timeout,
"nocrash": nocrash, "nocrash": nocrash,
"pass": passes, "pass": passes,
"fail_ok": fail_ok, "fail_ok": fail_ok,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment