summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-31 14:10:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-31 14:11:04 (GMT)
commitb40a43a1f4be3c8ba70284fda9d04ad0f413b171 (patch)
tree32fac1622be165623b1e17051f948d04a420c6a2 /Tests
parent425bb1a66aa2a87bfb40316acf3dc2b371424f01 (diff)
parentea359bc5a620034e199573482cbbaa794984915e (diff)
downloadCMake-b40a43a1f4be3c8ba70284fda9d04ad0f413b171.zip
CMake-b40a43a1f4be3c8ba70284fda9d04ad0f413b171.tar.gz
CMake-b40a43a1f4be3c8ba70284fda9d04ad0f413b171.tar.bz2
Merge topic 'test-server-result'
ea359bc5 Tests: Teach Server test to print server return code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1212
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Server/CMakeLists.txt2
-rw-r--r--Tests/Server/server-test.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/Tests/Server/CMakeLists.txt b/Tests/Server/CMakeLists.txt
index 2ad05c3..08bef0c 100644
--- a/Tests/Server/CMakeLists.txt
+++ b/Tests/Server/CMakeLists.txt
@@ -16,7 +16,7 @@ macro(do_test bsname file)
)
if (NOT test_result EQUAL 0)
- message(SEND_ERROR "TEST FAILED")
+ message(SEND_ERROR "TEST FAILED: ${test_result}")
endif()
endmacro()
diff --git a/Tests/Server/server-test.py b/Tests/Server/server-test.py
index f5a3f28..9380910 100644
--- a/Tests/Server/server-test.py
+++ b/Tests/Server/server-test.py
@@ -111,4 +111,5 @@ for obj in testData:
print("Completed")
cmakelib.exitProc(proc)
+print('cmake-server exited: %d' % proc.returncode)
sys.exit(proc.returncode)