aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/base
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-06-01 13:11:07 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-06-01 13:11:07 +0200
commit6a3c4dc21c1a5831618e5604df45abe4b0545bba (patch)
tree0151517dcb1854219b633c2254f2312cc220119b /share/qbs/imports/qbs/base
parente655352e1ebfd09f2b08114f4d61c7a2f8dfc645 (diff)
parent40746dae36452398649481fecad9cdc5f25cc80f (diff)
Merge 1.12 into master
Diffstat (limited to 'share/qbs/imports/qbs/base')
-rw-r--r--share/qbs/imports/qbs/base/AutotestRunner.qbs9
1 files changed, 8 insertions, 1 deletions
diff --git a/share/qbs/imports/qbs/base/AutotestRunner.qbs b/share/qbs/imports/qbs/base/AutotestRunner.qbs
index f0bd1af78..a1d89da63 100644
--- a/share/qbs/imports/qbs/base/AutotestRunner.qbs
+++ b/share/qbs/imports/qbs/base/AutotestRunner.qbs
@@ -58,6 +58,13 @@ Product {
auxiliaryInputs: product.auxiliaryInputs
outputFileTags: "autotest-result"
prepare: {
+ // TODO: This is hacky. Possible solution: Add autotest tag to application
+ // in autotest module and have that as inputsFromDependencies instead of application.
+ if (!input.product.type.contains("autotest")) {
+ var cmd = new JavaScriptCommand();
+ cmd.silent = true;
+ return cmd;
+ }
var commandFilePath;
var installed = input.moduleProperty("qbs", "install");
if (installed)
@@ -65,7 +72,7 @@ Product {
if (!commandFilePath || !File.exists(commandFilePath))
commandFilePath = input.filePath;
var workingDir = product.workingDir ? product.workingDir
- : FileInfo.path(input.filePath);
+ : FileInfo.path(commandFilePath);
var arguments = product.arguments;
var allowFailure = false;
if (input.autotest) {