Reinhard Max 2024-06-04 14:37:38 +00:00 committed by Git OBS Bridge
parent 0e3b340528
commit 5393c63ce9
2 changed files with 38 additions and 3 deletions

35
chrony-124-tai.patch Normal file
View File

@ -0,0 +1,35 @@
From 8f5b3084144967b313cfb51285bf6517e06e1b9e Mon Sep 17 00:00:00 2001
From: Miroslav Lichvar <mlichvar@redhat.com>
Date: Tue, 4 Jun 2024 16:23:41 +0200
Subject: [PATCH] test: make 124-tai more reliable
Reported-by: Reinhard Max <max@suse.de>
---
test/simulation/124-tai | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/simulation/124-tai b/test/simulation/124-tai
index 0192e10..e8c909d 100755
--- a/test/simulation/124-tai
+++ b/test/simulation/124-tai
@@ -20,7 +20,7 @@ client_conf="
refclock SHM 0 dpoll 0 poll 0 tai
leapseclist tmp/leap.list
leapsecmode ignore
-maxchange 1e-3 1 0"
+maxchange 1e-3 10 0"
cat > tmp/leap.list <<-EOF
#$ 3676924800
@@ -43,7 +43,7 @@ client_conf="
refclock SHM 0 dpoll 0 poll 0 tai
leapseclist tmp/leap.list
makestep 1 1
-maxchange 1e-3 1 0"
+maxchange 1e-3 10 0"
run_test || test_fail
check_chronyd_exit || test_fail
--
GitLab

View File

@ -70,7 +70,7 @@ Patch2: chrony-logrotate.patch
Patch3: chrony-service-ordering.patch
Patch7: chrony-htonl.patch
Patch8: chrony.nm-dispatcher.dhcp.patch
Patch9: chrony-tai.patch
Patch9: chrony-124-tai.patch
BuildRequires: NetworkManager-devel
BuildRequires: bison
BuildRequires: findutils
@ -182,7 +182,7 @@ e.g. because the servers will be set via DHCP.
%patch -P 3
%patch -P 7
%patch -P 8
#%patch -P 9
%patch -P 9
# Remove pool statements from the default /etc/chrony.conf. They will
# be provided by branding packages in /etc/chrony.d/pool.conf .
@ -296,7 +296,7 @@ find %{buildroot} -type f | xargs sed -i '
%ifnarch %ix86
%check
# Set random seed to get deterministic results
#export CLKNETSIM_RANDOM_SEED=24501
export CLKNETSIM_RANDOM_SEED=24501
export CFLAGS="%{optflags}"
make %{?_smp_mflags} -C test/simulation/clknetsim
pushd test/simulation