File nss-allow-slow-tests.patch of Package mozilla-nss.20241108081452

Index: nss/tests/sdr/sdr.sh
===================================================================
--- nss.orig/tests/sdr/sdr.sh
+++ nss/tests/sdr/sdr.sh
@@ -146,7 +146,8 @@ sdr_main()
   RARRAY=($dtime)
   TIMEARRAY=(${RARRAY[1]//./ })
   echo "${TIMEARRAY[0]} seconds"
-  html_msg ${TIMEARRAY[0]} 0 "pwdecrypt no time regression"
+  # Suse 2022-10-04: Need more time for slow build servers
+  html_msg $(( ${TIMEARRAY[0]} >= 5 )) 0 "pwdecrypt no time regression"
   export NSS_MAX_MP_PBE_ITERATION_COUNT=$OLD_MAX_PBE_ITERATIONS
 }
 
Index: nss/tests/dbtests/dbtests.sh
===================================================================
--- nss.orig/tests/dbtests/dbtests.sh
+++ nss/tests/dbtests/dbtests.sh
@@ -366,7 +366,8 @@ dbtest_main()
       RARRAY=($dtime)
       TIMEARRAY=(${RARRAY[1]//./ })
       echo "${TIMEARRAY[0]} seconds"
-      test ${TIMEARRAY[0]} -lt 5
+      # Was 5, but that is too small for OBS-workers.
+      test ${TIMEARRAY[0]} -lt 6
       ret=$?
       html_msg ${ret} 0 "certutil dump keys with explicit default trust flags"
     fi
openSUSE Build Service is sponsored by