Extract PPBR package path validation
This commit is contained in:
@@ -6,11 +6,24 @@ if(NOT DEFINED EXPECTED_OUTPUT)
|
||||
message(FATAL_ERROR "EXPECTED_OUTPUT must be set")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND "${PANO_CLI}" plan-brush-package-export
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_VARIABLE output
|
||||
ERROR_VARIABLE error)
|
||||
if(NOT DEFINED EXPECT_NO_DIRECTORY)
|
||||
set(EXPECT_NO_DIRECTORY OFF)
|
||||
endif()
|
||||
|
||||
if(EXPECT_NO_DIRECTORY)
|
||||
execute_process(
|
||||
COMMAND "${PANO_CLI}" plan-brush-package-export
|
||||
--path clouds
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_VARIABLE output
|
||||
ERROR_VARIABLE error)
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND "${PANO_CLI}" plan-brush-package-export
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_VARIABLE output
|
||||
ERROR_VARIABLE error)
|
||||
endif()
|
||||
|
||||
if(result EQUAL 0)
|
||||
message(FATAL_ERROR "Expected pano_cli plan-brush-package-export to fail, but it exited 0")
|
||||
|
||||
Reference in New Issue
Block a user