summaryrefslogtreecommitdiff
path: root/Source/CTest
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2015-07-07 21:50:32 -0400
committerBrad King <brad.king@kitware.com>2015-07-17 10:26:28 -0400
commit601ff0ec55517bc2a80e9a8cc2340f1c18b93490 (patch)
tree01bd5763d85ce64de94a3893539a205a58cb25a0 /Source/CTest
parent7a409983292e0917cf1299d55ca601a92fd4a36e (diff)
downloadcmake-601ff0ec55517bc2a80e9a8cc2340f1c18b93490.tar.gz
CTest: Optionally add a ChangeId attribute on XML Site tags
Add variable CTEST_CHANGE_ID to configure the setting. This allows CTest clients to give CDash information about what change is being tested so that CDash can take actions to report the results (e.g. to a pull request page).
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestHandlerCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestHandlerCommand.cxx b/Source/CTest/cmCTestHandlerCommand.cxx
index 3003e8a1c2..3579aee19a 100644
--- a/Source/CTest/cmCTestHandlerCommand.cxx
+++ b/Source/CTest/cmCTestHandlerCommand.cxx
@@ -109,6 +109,12 @@ bool cmCTestHandlerCommand
this->Quiet);
}
+ if(const char* changeId =
+ this->Makefile->GetDefinition("CTEST_CHANGE_ID"))
+ {
+ this->CTest->SetCTestConfiguration("ChangeId", changeId, this->Quiet);
+ }
+
cmCTestLog(this->CTest, DEBUG, "Initialize handler" << std::endl;);
cmCTestGenericHandler* handler = this->InitializeHandler();
if ( !handler )