aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackboxbase.h
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_blackboxbase.h
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_blackboxbase.h')
-rw-r--r--tests/auto/blackbox/tst_blackboxbase.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/blackbox/tst_blackboxbase.h b/tests/auto/blackbox/tst_blackboxbase.h
index 6821b66a2..1c3b9b4bb 100644
--- a/tests/auto/blackbox/tst_blackboxbase.h
+++ b/tests/auto/blackbox/tst_blackboxbase.h
@@ -28,6 +28,8 @@
#ifndef TST_BLACKBOXBASE_H
#define TST_BLACKBOXBASE_H
+#include "../shared.h"
+
#include <QtCore/qmap.h>
#include <QtCore/qprocess.h>
#include <QtCore/qstringlist.h>
@@ -55,7 +57,8 @@ public:
void init()
{
expectFailure = false;
- useProfile = true;
+ profile = profileName();
+ settingsDir = settings()->baseDirectory();
environment = QProcessEnvironment::systemEnvironment();
}
@@ -63,8 +66,9 @@ public:
QStringList arguments;
QString buildDirectory;
QProcessEnvironment environment;
+ QString profile;
+ QString settingsDir;
bool expectFailure;
- bool useProfile;
};
class TestBlackboxBase : public QObject