aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackboxapple.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-06-12 12:17:03 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-06-12 12:18:03 +0000
commitee0ead13179534c8bfcce28e43d5ab47104455ad (patch)
tree6432434de182ca960c5c9d69a0f04977505cca5e /tests/auto/blackbox/tst_blackboxapple.cpp
parent5ba4fd79ae13fec9c615d4c3892e70b72ed26a99 (diff)
Autotests: Improve the QbsRunParameters class
Add dedicated properties for profile and settings path, rather than test functions having to meddle with the arguments list themselves. Change-Id: Icf58e31174ad15f42aee2eabd8578c20b7d517fa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxapple.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackboxapple.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/blackbox/tst_blackboxapple.cpp b/tests/auto/blackbox/tst_blackboxapple.cpp
index 820bc8052..c5c86dac8 100644
--- a/tests/auto/blackbox/tst_blackboxapple.cpp
+++ b/tests/auto/blackbox/tst_blackboxapple.cpp
@@ -730,9 +730,8 @@ QTEST_MAIN(TestBlackboxApple)
QVariantMap TestBlackboxApple::findXcode(int *status)
{
QTemporaryDir temp;
- QbsRunParameters params = QStringList({"-f", testDataDir + "/find/find-xcode.qbs",
- "profile:none"});
- params.useProfile = false;
+ QbsRunParameters params = QStringList({"-f", testDataDir + "/find/find-xcode.qbs"});
+ params.profile = "none";
params.buildDirectory = temp.path();
const int res = runQbs(params);
if (status)