mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-21 14:10:41 -06:00
Tests: Teach Server test to print server return code
This will aid in diagnosing failures.
This commit is contained in:
@@ -16,7 +16,7 @@ macro(do_test bsname file)
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (NOT test_result EQUAL 0)
|
if (NOT test_result EQUAL 0)
|
||||||
message(SEND_ERROR "TEST FAILED")
|
message(SEND_ERROR "TEST FAILED: ${test_result}")
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|||||||
@@ -111,4 +111,5 @@ for obj in testData:
|
|||||||
print("Completed")
|
print("Completed")
|
||||||
|
|
||||||
cmakelib.exitProc(proc)
|
cmakelib.exitProc(proc)
|
||||||
|
print('cmake-server exited: %d' % proc.returncode)
|
||||||
sys.exit(proc.returncode)
|
sys.exit(proc.returncode)
|
||||||
|
|||||||
Reference in New Issue
Block a user