summaryrefslogtreecommitdiff
path: root/qmake-features/am-qml-testcase.prf
diff options
context:
space:
mode:
Diffstat (limited to 'qmake-features/am-qml-testcase.prf')
-rw-r--r--qmake-features/am-qml-testcase.prf6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmake-features/am-qml-testcase.prf b/qmake-features/am-qml-testcase.prf
index b475deed..923920fe 100644
--- a/qmake-features/am-qml-testcase.prf
+++ b/qmake-features/am-qml-testcase.prf
@@ -55,7 +55,8 @@ OTHER_FILES += $$IMPORTS_DIR
# Read a config file
for(config, AM_CONFIG) {
- COMMAND += -c $$absolute_path($$config, $$_PRO_FILE_PWD_)
+ isEmpty(TESTRUN_CWD): COMMAND += -c $$absolute_path($$config, $$_PRO_FILE_PWD_)
+ else: COMMAND += -c $$config
}
OTHER_FILES += $$AM_CONFIG
@@ -82,8 +83,7 @@ OTHER_FILES += $$TEST_FILES
# Copy assets to build folder
for (d , DIRECTORIES) {
- win32: do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t)
- else: do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD) $$escape_expand(\n\t)
+ do_copydata.commands += $(COPY_DIR) $$shell_path($$_PRO_FILE_PWD_/$${d}) $$shell_path($$OUT_PWD/$${d}) $$escape_expand(\n\t)
}
for (f , FILES) {
do_copydata.commands += $(COPY) $$shell_path($$_PRO_FILE_PWD_/$${f}) $$shell_path($$OUT_PWD/$${f}) $$escape_expand(\n\t)