Skip to content

Commit

Permalink
Fix outdated variable name and error on file generation failure (#412)
Browse files Browse the repository at this point in the history
* POLICY_RESULT->GENERATE_ARTIFACTS_RESULT

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>

* fail CMake configure if security artifacts fail to be generated

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
  • Loading branch information
mikaelarguedas authored Apr 17, 2020
1 parent bfe3d3a commit 81e2304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_security/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ if(BUILD_TESTING)
RESULT_VARIABLE GENERATE_ARTIFACTS_RESULT
ERROR_VARIABLE GENERATE_ARTIFACTS_ERROR
)
if(NOT ${POLICY_RESULT} EQUAL 0)
message(WARNING "Failed to generate security artifacts: ${GENERATE_ARTIFACTS_ERROR}")
if(NOT ${GENERATE_ARTIFACTS_RESULT} EQUAL 0)
message(FATAL_ERROR "Failed to generate security artifacts: ${GENERATE_ARTIFACTS_ERROR}")
endif()

# deleting key of /publisher_missing_key
Expand Down

0 comments on commit 81e2304

Please sign in to comment.