[all-commits] [llvm/llvm-project] d3efa5: [lit] Keep stdout/stderr when using GoogleTest format

Yuanfang Chen via All-commits all-commits at lists.llvm.org
Mon Apr 25 12:26:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3efa577f549760a42ba68bda95d1e576c2adda1
      https://github.com/llvm/llvm-project/commit/d3efa577f549760a42ba68bda95d1e576c2adda1
  Author: Yuanfang Chen <yuanfang.chen at sony.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M llvm/utils/lit/lit/formats/googletest.py
    M llvm/utils/lit/lit/util.py
    M llvm/utils/lit/tests/Inputs/googletest-crash/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py
    M llvm/utils/lit/tests/googletest-crash.py
    M llvm/utils/lit/tests/googletest-format.py
    M llvm/utils/lit/tests/googletest-timeout.py

  Log Message:
  -----------
  [lit] Keep stdout/stderr when using GoogleTest format

When a unit test crashes or timeout, print the shard's stdout and
stderr. When a unit test fails, attaches the test's output to the LIT
output to help debugging.

While at it, concatenating shard's environment variables using space
instead of newline to make the reproducer script user friendly.

Based on D123797. (Thanks to @lenary)




More information about the All-commits mailing list