diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-07-15 20:46:24 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-08-11 08:04:44 +0000 |
commit | 615b9c1f06c1d95da5bfad7dca2b27e4fbaaada8 (patch) | |
tree | d00fb0a8ca689969ef156b7e852bb8079f8954be /mkspecs/features | |
parent | 46cb5a4dce74671efed44ba45e10472795d9813f (diff) |
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>
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/configure_base.prf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/configure_base.prf b/mkspecs/features/configure_base.prf index 3397a7703e..31e8116490 100644 --- a/mkspecs/features/configure_base.prf +++ b/mkspecs/features/configure_base.prf @@ -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) |