This is an automated email from the ASF dual-hosted git repository. cml pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-interop-test.git
commit 2cf31b57029caca95a78c96957fc030bbbf797cd Author: Kim van der Riet <[email protected]> AuthorDate: Thu Jan 16 07:35:49 2020 -0500 NO_JIRA: Minor improvement to error reporting from cmake file when complex_data_test fails generation --- CMakeLists.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c909095..48506a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,15 +96,9 @@ endif () execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py --gen cpp --src-dir src/python/qpid_interop_test --gen-dir shims/qpid-proton-cpp/src/qpidit/amqp_complex_types_test WORKING_DIRECTORY ../ RESULT_VARIABLE retcode - OUTPUT_VARIABLE stdouttext - ERROR_VARIABLE stderrtext - COMMAND_ECHO STDOUT ) if(NOT "${retcode}" STREQUAL "0") - message(STATUS "retcode=${retcode}") - message(STATUS "stdouttext=${stdouttext}") - message(STATUS "stderrtext=${stderrtext}") - message(FATAL_ERROR "Data code file generation for C++ failed") + message(FATAL_ERROR "Data code file generation for C++ failed: ${retcode}") endif() execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py --gen python --src-dir src/python/qpid_interop_test --gen-dir shims/qpid-proton-python/src/amqp_complex_types_test @@ -112,7 +106,7 @@ execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_ RESULT_VARIABLE retcode ) if(NOT "${retcode}" STREQUAL "0") - message(FATAL_ERROR "Data code file generation for Python failed") + message(FATAL_ERROR "Data code file generation for Python failed: ${retcode}") endif() execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py --gen javascript --src-dir src/python/qpid_interop_test --gen-dir shims/rhea-js/amqp_complex_types_test @@ -120,7 +114,7 @@ execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_ RESULT_VARIABLE retcode ) if(NOT "${retcode}" STREQUAL "0") - message(FATAL_ERROR "Data code file generation for JavaScript failed") + message(FATAL_ERROR "Data code file generation for JavaScript failed: ${retcode}") endif() execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_test_generator.py --gen dotnet --src-dir src/python/qpid_interop_test --gen-dir shims/amqpnetlite/src/amqp_complex_types_test @@ -128,7 +122,7 @@ execute_process(COMMAND python3 src/python/qpid_interop_test/amqp_complex_types_ RESULT_VARIABLE retcode ) if(NOT "${retcode}" STREQUAL "0") - message(FATAL_ERROR "Data code file generation for .Net failed") + message(FATAL_ERROR "Data code file generation for .Net failed: ${retcode}") endif() add_subdirectory(shims/qpid-proton-cpp/src) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
