[education/rkward] rkward: Try to diagnose test exception on Windows CI: Startup message, and try to take QWebEngine out of the equation, for now.

Thomas Friedrichsmeier null at kde.org
Wed Jun 15 16:28:17 BST 2022


Git commit 93212972f16ee14f6bd0d4e2ef49c2b689162c2a by Thomas Friedrichsmeier.
Committed on 15/06/2022 at 15:28.
Pushed by tfry into branch 'master'.

Try to diagnose test exception on Windows CI: Startup message, and try to take QWebEngine out of the equation, for now.

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

https://invent.kde.org/education/rkward/commit/93212972f16ee14f6bd0d4e2ef49c2b689162c2a

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index dec6a98a..2165a5a9 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -98,6 +98,7 @@ private slots:
 	}
 	void initTestCase()
 	{
+		qDebug("Initializing test case"); // Remove me. For diagnostics of test exception on Windows CI
 		qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox"); // Allow test to be run as root, which, for some reason is being done on the SuSE CI.
 		QLoggingCategory::setFilterRules("qt.text.layout=false");  // Filter out some noise
 		KAboutData::setApplicationData(KAboutData("rkward", "RKWard", RKWARD_VERSION, "Frontend to the R statistics language", KAboutLicense::GPL)); // component name needed for .rc files to load
diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index a0657ea8..0908bbe0 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -265,7 +265,7 @@ void RKWardMainWindow::doPostInit () {
 		if (RKSettingsModuleGeneral::workplaceSaveMode () == RKSettingsModuleGeneral::SaveWorkplaceWithSession) {
 			RKWorkplace::mainWorkplace ()->restoreWorkplace (RKSettingsModuleGeneral::getSavedWorkplace (KSharedConfig::openConfig ().data ()).split ('\n'));
 		}
-		if (RKSettingsModuleGeneral::showHelpOnStartup ()) toplevel_actions->showRKWardHelp ();
+		if (RKSettingsModuleGeneral::showHelpOnStartup() && !testmode_suppress_dialogs) toplevel_actions->showRKWardHelp ();
 	}
 	setNoAskSave (false);
 


More information about the rkward-tracker mailing list