moreIconsDialog-accesses-internet
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Fri, 27 Sep 2024 15:38:49 +0000 (17:38 +0200)
committerRene Engelhard <rene@debian.org>
Fri, 27 Sep 2024 15:38:49 +0000 (17:38 +0200)
Gbp-Pq: Name moreIconsDialog-accesses-internet.diff

cui/source/dialogs/AdditionsDialog.cxx

index 3f57676a13ec08fc9fcde49b625d90d8ef58a621..e6614759e24b4c3c8724fe0e3ebd208391a35bae 100644 (file)
@@ -277,9 +277,13 @@ SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool
     , m_bIsFirstLoading(isFirstLoading)
 {
     // if we are running a UITest, e.g. UITest_sw_options then
-    // don't attempt to downloading anything
-    static const bool bUITest = getenv("LIBO_TEST_UNIT");
-
+    // don't attempt to downloading anything. Use AUTOPKGTEST_TMP in Debian
+    // so that the test actually is run in autopkgtest where we are sure
+    // we have internet (needs-internet)
+    static bool bUITest;
+    if (getenv("AUTOPKGTEST_TMP") == NULL) { bUITest = true; } // don't disable test
+    else { bUITest = false; }
     m_bUITest = bUITest;
 }