mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 22:35:33 -05:00
ctest: print WORKING_DIRECTORY property with -V
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user