ctest: print WORKING_DIRECTORY property with -V

This commit is contained in:
Kevin Puetz
2022-03-09 08:42:54 -06:00
parent 8c852e4cd0
commit a116fd413d
2 changed files with 9 additions and 1 deletions

View File

@@ -693,6 +693,14 @@ void cmCTestRunTest::ComputeArguments()
<< (this->TestHandler->MemCheck ? "MemCheck" : "Test")
<< " command: " << testCommand << std::endl);
// Print any test-specific env vars in verbose mode
if (!this->TestProperties->Directory.empty()) {
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
this->Index << ": "
<< "Working Directory: "
<< this->TestProperties->Directory << std::endl);
}
// Print any test-specific env vars in verbose mode
if (!this->TestProperties->Environment.empty()) {
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT,

View File

@@ -2999,7 +2999,7 @@ if(BUILD_TESTING)
-C "\${CTestTest_CONFIG}"
)
set_property(TEST CTestTestVerboseOutput PROPERTY PASS_REGULAR_EXPRESSION
"Environment variables:.*foo=bar.*this=that"
"Test command:.*Working Directory:.*Environment variables:.*foo=bar.*this=that"
)
configure_file(