Make testes not parallel
This commit is contained in:
parent
2acf7784a6
commit
aa59ddd714
@ -52,7 +52,7 @@ override_dh_missing:
|
||||
dh_missing --list-missing
|
||||
|
||||
override_dh_auto_test:
|
||||
dh_auto_test -- -k TESTARGS="-m 600 -p -o -p -,txt -p -o -p test-results.xml,xunitxml" TESTRUNNER="dbus-test-runner --bus-type=both --task"
|
||||
dh_auto_test --no-parallel -- -k TESTARGS="-m 600 -p -o -p -,txt -p -o -p test-results.xml,xunitxml" TESTRUNNER="dbus-test-runner --bus-type=both --task"
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd --restart-after-upgrade
|
||||
|
||||
@ -1 +0,0 @@
|
||||
../debian-qt5/changelog
|
||||
1345
debian-qt6/changelog
Normal file
1345
debian-qt6/changelog
Normal file
File diff suppressed because it is too large
Load Diff
@ -52,7 +52,7 @@ override_dh_missing:
|
||||
dh_missing --list-missing
|
||||
|
||||
override_dh_auto_test:
|
||||
dh_auto_test -- -k TESTARGS="-m 600 -p -o -p -,txt -p -o -p test-results.xml,xunitxml" TESTRUNNER="dbus-test-runner --bus-type=both --task"
|
||||
dh_auto_test --no-parallel -- -k TESTARGS="-m 600 -p -o -p -,txt -p -o -p test-results.xml,xunitxml" TESTRUNNER="dbus-test-runner --bus-type=both --task"
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd --restart-after-upgrade
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#include "nymeabluetoothagent.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QDBusConnection>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@
|
||||
|
||||
#include "modbusrtuhardwareresourceimplementation.h"
|
||||
#include "loggingcategories.h"
|
||||
#include "nymeasettings.h"
|
||||
#include "hardware/modbus/modbusrtumanager.h"
|
||||
|
||||
NYMEA_LOGGING_CATEGORY(dcModbusRtuResource, "ModbusRtuResource")
|
||||
|
||||
@ -192,8 +192,6 @@ void JsonHandler::registerObject(const QMetaObject &metaObject)
|
||||
for (int i = 0; i < metaObject.propertyCount(); i++) {
|
||||
QMetaProperty metaProperty = metaObject.property(i);
|
||||
QString name = metaProperty.name();
|
||||
// if (className == "Thing")
|
||||
// qCDebug(dcJsonRpc()) << "Thing!" << metaProperty.isUser() << metaProperty.isWritable() << metaProperty.revision();
|
||||
|
||||
if (name == "objectName") {
|
||||
continue; // Skip QObject's objectName property
|
||||
@ -323,7 +321,8 @@ QVariant JsonHandler::pack(const QMetaObject &metaObject, const void *value) con
|
||||
}
|
||||
|
||||
QVariant propertyValue = metaProperty.readOnGadget(value);
|
||||
qCDebug(dcJsonRpc()) << metaProperty.name() << "optional:" << metaProperty.isUser() << "value:" << propertyValue << "valid:" << propertyValue.isValid() << "null:" << propertyValue.isNull();
|
||||
// qCDebug(dcJsonRpc()) << metaProperty.name() << "optional:" << metaProperty.isUser()
|
||||
// << "value:" << propertyValue << "valid:" << propertyValue.isValid() << "null:" << propertyValue.isNull();
|
||||
|
||||
// If it's optional and empty, we may skip it
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
*
|
||||
* Copyright 2013 - 2020, nymea GmbH
|
||||
* Copyright 2013 - 2025, nymea GmbH
|
||||
* Contact: contact@nymea.io
|
||||
*
|
||||
* This file is part of nymea.
|
||||
@ -31,6 +31,7 @@
|
||||
#ifndef ZEROCONFSERVICEENTRY_H
|
||||
#define ZEROCONFSERVICEENTRY_H
|
||||
|
||||
#include <QDebug>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QHostAddress>
|
||||
|
||||
@ -414,7 +414,7 @@ void TestWebserver::getIcons()
|
||||
QFETCH(int, iconSize);
|
||||
|
||||
QNetworkAccessManager nam;
|
||||
connect(&nam, &QNetworkAccessManager::sslErrors, [this, &nam](QNetworkReply* reply, const QList<QSslError> &) {
|
||||
connect(&nam, &QNetworkAccessManager::sslErrors, [](QNetworkReply* reply, const QList<QSslError> &) {
|
||||
reply->ignoreSslErrors();
|
||||
});
|
||||
QSignalSpy clientSpy(&nam, &QNetworkAccessManager::finished);
|
||||
@ -623,8 +623,7 @@ void TestWebserver::getDebugServer()
|
||||
reply = nam.put(request, "");
|
||||
}
|
||||
|
||||
clientSpy.wait(1000);
|
||||
qCCritical(dcTests()) << reply->isFinished() << reply->isRunning() << clientSpy.count();
|
||||
clientSpy.wait();
|
||||
QVERIFY2(clientSpy.count() == 1, "expected exactly 1 response from webserver");
|
||||
|
||||
ok = false;
|
||||
|
||||
Reference in New Issue
Block a user