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'. Pick-to: 6.0 Change-Id: Ie990fc0b0bf2c19b119c7c4e2aeec092e5200103 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
b3b28faf26
commit
7582f7b03d
@ -563,7 +563,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…
Reference in New Issue
Block a user