[lldb] Use the basename of the Python test for the log name instead of the class...
authorRaphael Isemann <teemperor@gmail.com>
Wed, 15 Jul 2020 11:53:44 +0000 (13:53 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 15 Jul 2020 11:54:43 +0000 (13:54 +0200)
commit29aab9b5c748b28b231e2ca0f9b95453638ade1a
tree2251a7d297eb2527b7fb4b7f09a84680a7a83fd1
parent3a6c2a61c64277a51a9dda22eece8072c0590fa4
[lldb] Use the basename of the Python test for the log name instead of the class name

Summary:

From what I know we already have the restriction that every test in the test
suite needs to have a unique file name as that's used for generating the unique
build directory for a test. It seems there is also a restriction that every test
case class in the test suite needs to have a unique name as that's used to
generate the unique log file name for the test run.

This changes the log file format to use the basename of the test file instead so
that we only have to keep worrying about the 'unique file name' restriction from
now on.

This came up because I started naming the test classes "TestCase" (as repeating
the file name in the test class seems like redudant information that just makes
renaming tests a pain).

Reviewers: labath, JDevlieghere

Reviewed By: labath

Subscribers: mgorny, abidh

Differential Revision: https://reviews.llvm.org/D83767
lldb/test/API/CMakeLists.txt