make sure that we capture the entire test command's output

the command can be a compound statement (usually 'foo && bar' style),
so enclose it in parens before redirecting stderr.

Change-Id: Ib72a2c8ddfd17bf9457e9cfe2652121258ce9a64
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Oswald Buddenhagen 2016-07-15 20:46:24 +02:00 committed by Lars Knoll
parent 46cb5a4dce
commit 615b9c1f06

View File

@ -33,7 +33,7 @@ defineTest(qtLog) {
defineTest(qtRunLoggedCommand) {
qtLog($$1)
output = $$system("$$1 2>&1", blob, result)
output = $$system("( $$1 ) 2>&1", blob, result)
write_file($${QMAKE_CONFIG_LOG}, output, append)
$$QMAKE_CONFIG_VERBOSE: log($$output)