summaryrefslogtreecommitdiff
path: root/Tests/Server
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-30 14:20:44 -0400
committerBrad King <brad.king@kitware.com>2017-08-30 14:20:44 -0400
commitea359bc5a620034e199573482cbbaa794984915e (patch)
treee2088d7088168778d823e86499525f1743d1bb8d /Tests/Server
parent82d9bbf2b713de4db2810c202db26c4b18a22e9c (diff)
downloadcmake-ea359bc5a620034e199573482cbbaa794984915e.tar.gz
Tests: Teach Server test to print server return code
This will aid in diagnosing failures.
Diffstat (limited to 'Tests/Server')
-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 2ad05c37d5..08bef0c44a 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 f5a3f2895a..9380910651 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)