[education/rkward] rkward/autotests: Allow autotest to run as root user, which, for some reason, seems to be the case on SuSE CI

Thomas Friedrichsmeier null at kde.org
Sat Jun 11 15:24:21 BST 2022


Git commit dc5987a14108183b048274845b9ec809b7e2497b by Thomas Friedrichsmeier.
Committed on 10/06/2022 at 06:07.
Pushed by tfry into branch 'master'.

Allow autotest to run as root user, which, for some reason, seems to be the case on SuSE CI

M  +2    -1    rkward/autotests/core_test.cpp

https://invent.kde.org/education/rkward/commit/dc5987a14108183b048274845b9ec809b7e2497b

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index ada5f77f..7ce0c68f 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -40,7 +40,8 @@ private slots:
 	}
 	void initTestCase()
 	{
-		KAboutData::setApplicationData(KAboutData("rkward")); // needed for .rc files to load
+		qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox"); // Allow test to be run as root, which, for some reason is being done on the SuSE CI.
+		KAboutData::setApplicationData(KAboutData("rkward")); // needed for .rc files to load0
 		RK_Debug::RK_Debug_Level = DL_WARNING;
 		qDebug(R_EXECUTABLE);
 		RKSessionVars::r_binary = R_EXECUTABLE;



More information about the rkward-tracker mailing list