mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-16 23:29:59 +00:00
end work on interfaces
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include <QDBusMessage>
|
||||
#include <QtTest>
|
||||
|
||||
#include <listmap/listmap.h>
|
||||
#include <netctlgui/netctlgui.h>
|
||||
|
||||
#include "version.h"
|
||||
@ -119,12 +120,9 @@ void TestNetctl::test_getRecommendedConfiguration()
|
||||
original.append(QString("SUDO_PATH==/usr/bin/sudo"));
|
||||
original.append(QString("SYSTEMCTL_PATH==/usr/bin/systemctl"));
|
||||
QMap<QString, QString> resultMap = Netctl::getRecommendedConfiguration();
|
||||
QStringList result;
|
||||
for (int i=0; i<resultMap.keys().count(); i++)
|
||||
result.append(QString("%1==%2").arg(resultMap.keys()[i]).arg(resultMap[resultMap.keys()[i]]));
|
||||
|
||||
QWARN("This test may fail on other configuration");
|
||||
QCOMPARE(result, original);
|
||||
QCOMPARE(mapToList(resultMap), original);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user