test.py: deduce correct path for unit tests when built with cmake
Fix the path deduction for unit test executables when the source code is built with cmake. Fixes #16906 Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com> Closes scylladb/scylladb#16907
This commit is contained in:
committed by
Botond Dénes
parent
0bef50ef0c
commit
a1867986e7
2
test.py
2
test.py
@@ -635,7 +635,7 @@ class UnitTest(Test):
|
||||
|
||||
def __init__(self, test_no: int, shortname: str, suite, args: str) -> None:
|
||||
super().__init__(test_no, shortname, suite)
|
||||
self.path = path_to(self.mode, "test", self.name)
|
||||
self.path = path_to(self.mode, "test", suite.name, shortname.split('.')[0])
|
||||
self.args = shlex.split(args) + UnitTest.standard_args
|
||||
if self.mode == "coverage":
|
||||
self.env.update(coverage.env(self.path))
|
||||
|
||||
Reference in New Issue
Block a user