From 18cfc50a4c8c5c0315f537465b3254dffa16a8e8 Mon Sep 17 00:00:00 2001 From: Samuel Henrique Date: Sun, 9 Mar 2025 10:41:25 +0000 Subject: [PATCH] runtests.pl: Increase variance of random seed used for tests's port designation Patched on Debian to add day, hour and min to the seed, e.g.: 201912091530 The version of curl we ship on bookworm is too prone to port conflicts on tests, this is the least intrusive workaround as it makes each retry use a different seed. Gbp-Pq: Name runtests_port_random_seed_variance.patch Gbp-Pq: Name runtests.pl-Increase-variance-of-random-seed-used-for-tes.patch --- tests/runtests.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 7ac9de2d..398ac52f 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -6031,7 +6031,10 @@ if(!$randseed) { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); # seed of the month. December 2019 becomes 201912 - $randseed = ($year+1900)*100 + $mon+1; + # Patched on Debian to add day, hour and min to the seed: 201912091530 + # The version of curl we ship on bookworm is too prone to port conflicts on tests, + # this is the least intrusive workaround as it makes each retry use a different seed. + $randseed = ($year+1900)*100 + $mon+1 + $mday + $hour + $min; open(C, "$CURL --version 2>/dev/null|"); my @c = ; close(C); -- 2.30.2