diff options
author | Brad King <brad.king@kitware.com> | 2017-08-30 18:20:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-30 18:20:44 (GMT) |
commit | ea359bc5a620034e199573482cbbaa794984915e (patch) | |
tree | e2088d7088168778d823e86499525f1743d1bb8d /Tests/Server | |
parent | 82d9bbf2b713de4db2810c202db26c4b18a22e9c (diff) | |
download | CMake-ea359bc5a620034e199573482cbbaa794984915e.zip CMake-ea359bc5a620034e199573482cbbaa794984915e.tar.gz CMake-ea359bc5a620034e199573482cbbaa794984915e.tar.bz2 |
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.txt | 2 | ||||
-rw-r--r-- | Tests/Server/server-test.py | 1 |
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) |