[all-commits] [llvm/llvm-project] 99d6e0: [lit] Improve naming of test result categories

Julian Lettner via All-commits all-commits at lists.llvm.org
Fri Jun 5 08:16:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 99d6e05e7144a2638c4e85ea75099e9dc6432cde
      https://github.com/llvm/llvm-project/commit/99d6e05e7144a2638c4e85ea75099e9dc6432cde
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M clang/www/hacking.html
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/tests/allow-retries.py
    M llvm/utils/lit/tests/custom-result-category.py
    M llvm/utils/lit/tests/googletest-discovery-failed.py
    M llvm/utils/lit/tests/googletest-format.py
    M llvm/utils/lit/tests/googletest-timeout.py
    M llvm/utils/lit/tests/googletest-upstream-format.py
    M llvm/utils/lit/tests/lit-opts.py
    M llvm/utils/lit/tests/max-failures.py
    M llvm/utils/lit/tests/max-time.py
    M llvm/utils/lit/tests/parallelism-groups.py
    M llvm/utils/lit/tests/selecting.py
    M llvm/utils/lit/tests/shtest-env.py
    M llvm/utils/lit/tests/shtest-format.py
    M llvm/utils/lit/tests/shtest-inject.py
    M llvm/utils/lit/tests/shtest-not.py
    M llvm/utils/lit/tests/shtest-shell.py
    M llvm/utils/lit/tests/shtest-timeout.py
    M mlir/test/Examples/standalone/test.toy

  Log Message:
  -----------
  [lit] Improve naming of test result categories

Improve consistency when printing test results:
Previously we were using different labels for group names (the header
for the list of, e.g., failing tests) and summary count lines.  For
example, "Failing Tests"/"Unexpected Failures".  This commit changes lit
to label things consistently.

Improve wording of labels:
When talking about individual test results, the first word in
"Unexpected Failures", "Expected Passes", and "Individual Timeouts" is
superfluous.  Some labels contain the word "Tests" and some don't.
Let's simplify the names.

Before:
```
Failing Tests (1):
  ...

Expected Passes    : 3
Unexpected Failures: 1
```

After:
```
Failed Tests (1):
  ...

Passed: 3
Failed: 1
```

Reviewed By: ldionne

Differential Revision: https://reviews.llvm.org/D77708




More information about the All-commits mailing list