[users] Set up GS rootMountPoint for test

This commit is contained in:
Adriaan de Groot 2020-10-23 12:27:44 +02:00
parent 63196ab58f
commit 0d4d3e3c4d

View File

@ -9,6 +9,7 @@
#include "CreateUserJob.h" #include "CreateUserJob.h"
#include "GlobalStorage.h"
#include "JobQueue.h" #include "JobQueue.h"
#include "utils/Logger.h" #include "utils/Logger.h"
@ -47,6 +48,7 @@ GroupTests::initTestCase()
void void
GroupTests::testReadGroup() GroupTests::testReadGroup()
{ {
Calamares::JobQueue::instance()->globalStorage()->insert( "rootMountPoint", "/" );
// Get the groups in the host system // Get the groups in the host system
QStringList groups = groupsInTargetSystem(); QStringList groups = groupsInTargetSystem();
QVERIFY( groups.count() > 2 ); QVERIFY( groups.count() > 2 );