diff options
author | Rolf Eike Beer <eb@emlix.com> | 2019-07-05 10:16:48 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eb@emlix.com> | 2019-07-05 14:25:05 (GMT) |
commit | 7929912b371f8fc7ec7637a9e834e784b4a4414c (patch) | |
tree | a1e47d4fa7834b52129cada2da65c9677dac2ef8 /Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake | |
parent | 3d11c63c9c338c4ed6e5d171f86af9cf6a7fca0f (diff) | |
download | CMake-7929912b371f8fc7ec7637a9e834e784b4a4414c.zip CMake-7929912b371f8fc7ec7637a9e834e784b4a4414c.tar.gz CMake-7929912b371f8fc7ec7637a9e834e784b4a4414c.tar.bz2 |
CPackComponentsDEB test: simplify error reporting
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake')
-rw-r--r-- | Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake index 3830ca5..3454dca 100644 --- a/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake +++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult-components-source.cmake @@ -36,7 +36,6 @@ endif() # dpkg-deb checks for the summary of the packages find_program(DPKGDEB_EXECUTABLE dpkg-deb) if(DPKGDEB_EXECUTABLE) - set(dpkgdeb_output_errors_all "") foreach(_f IN LISTS actual_output) # extracts the metadata from the package @@ -56,20 +55,14 @@ if(DPKGDEB_EXECUTABLE) if(NOT dpkg_package_name STREQUAL "mylib-applications") if(NOT dpkg_package_source STREQUAL "test-source") - set(dpkgdeb_output_errors_all "${dpkgdeb_output_errors_all}" - "dpkg-deb: ${_f}: Incorrect source for package '${dpkg_package_name}': '${dpkg_package_source}' instead of 'test-source'\n") + message(SEND_ERROR "dpkg-deb: ${_f}: Incorrect source for package '${dpkg_package_name}': '${dpkg_package_source}' instead of 'test-source'\n") endif() else() if(NOT dpkg_package_source STREQUAL "test-other-source") - set(dpkgdeb_output_errors_all "${dpkgdeb_output_errors_all}" - "dpkg-deb: ${_f}: Incorrect source for package '${dpkg_package_name}': '${dpkg_package_source}' instead of 'test-other-source'\n") + message(SEND_ERROR "dpkg-deb: ${_f}: Incorrect source for package '${dpkg_package_name}': '${dpkg_package_source}' instead of 'test-other-source'\n") endif() endif() endforeach() - - if(NOT dpkgdeb_output_errors_all STREQUAL "") - message(FATAL_ERROR "dpkg-deb checks failed:\n${dpkgdeb_output_errors_all}") - endif() else() message("dpkg-deb executable not found - skipping dpkg-deb test") endif() |