From ea359bc5a620034e199573482cbbaa794984915e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Aug 2017 14:20:44 -0400 Subject: Tests: Teach Server test to print server return code This will aid in diagnosing failures. --- Tests/Server/CMakeLists.txt | 2 +- Tests/Server/server-test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12