Fix warning in generated test wrappers
Since test command variable may contain quotes, there is a warning in generated test wrappers related to 'message(FATAL_ERROR', that should display full command in log in case of error. To avoid any complicated quoting of command to only display it, join command into single string in wrapper script and pass resulting variable to 'message(FATAL_ERROR'. Change-Id: Ie990fc0b0bf2c19b119c7c4e2aeec092e5200103 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 7582f7b03d52103c5299812aed8705d21d4f8b9b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4bbff3fa21
commit
1e5c279c22
@ -559,7 +559,8 @@ execute_process(COMMAND ${extra_runner} ${arg_COMMAND}
|
||||
)
|
||||
${post_run}
|
||||
if(NOT result EQUAL 0)
|
||||
message(FATAL_ERROR \"${arg_COMMAND} execution failed.\")
|
||||
string(JOIN \" \" full_command ${arg_COMMAND})
|
||||
message(FATAL_ERROR \"\${full_command} execution failed.\")
|
||||
endif()"
|
||||
)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user