aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-11-13 21:38:18 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2019-11-15 09:06:47 +0000
commite987dae1d7fda499a8f911f910b645b76c1d72c5 (patch)
tree92a432f79d3b238f30476eb0fda58ebede7bd52b /tests
parenta8bb88572d2f0c39d3841d082cd956593cfe403e (diff)
Skip TestBlackbox::qbsSession when project updates are disabled
Change-Id: I2ada7907c2413583d6cb03d22837dfbfba368201 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 30f2482be..5d9077c2f 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -5813,8 +5813,14 @@ void TestBlackbox::qbsSession()
receivedMessage = getNextSessionPacket(sessionProc, incomingData);
QCOMPARE(receivedMessage.value("type").toString(), QString("files-added"));
error = receivedMessage.value("error").toObject();
- if (!error.isEmpty())
+ if (!error.isEmpty()) {
+ for (const auto &item: error[QStringLiteral("items")].toArray()) {
+ const auto description = QStringLiteral("Project file updates are not enabled");
+ if (item.toObject()[QStringLiteral("description")].toString().contains(description))
+ QSKIP("File updates are disabled");
+ }
qDebug() << error;
+ }
QVERIFY(error.isEmpty());
QJsonObject projectData = receivedMessage.value("project-data").toObject();
QJsonArray products = projectData.value("products").toArray();