From b5d5ccb905ea935c54e4cf7ad756a9810ab40abb Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 31 Aug 2018 12:54:11 +0200 Subject: [PATCH] fix test suite to pass quick check --- chrony-test.patch | 20 ++++++++++++++++++++ chrony.spec | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 chrony-test.patch diff --git a/chrony-test.patch b/chrony-test.patch new file mode 100644 index 0000000..a068b5f --- /dev/null +++ b/chrony-test.patch @@ -0,0 +1,20 @@ +commit 49d52b547fe1e66aac5b0799c6918ae3a5a831da +Author: Miroslav Lichvar +Date: Fri Aug 31 12:48:07 2018 +0200 + + test: make 129-reload more reliable + +diff --git a/test/simulation/129-reload b/test/simulation/129-reload +index 9c4e985..7a346a4 100755 +--- a/test/simulation/129-reload ++++ b/test/simulation/129-reload +@@ -9,7 +9,8 @@ limit=100 + min_sync_time=100 + max_sync_time=104 + client_chronyd_options="-r" +-client_conf="dumpdir tmp" ++client_conf="dumpdir tmp ++maxupdateskew 10000" + + run_test || test_fail + diff --git a/chrony.spec b/chrony.spec index 42140f9..0766ba3 100644 --- a/chrony.spec +++ b/chrony.spec @@ -22,6 +22,8 @@ Source10: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/c # add NTP servers from DHCP when starting service Patch2: chrony-service-helper.patch +# fix test suite to pass quick check +Patch3: chrony-test.patch BuildRequires: libcap-devel libedit-devel nettle-devel pps-tools-devel %ifarch %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x @@ -53,6 +55,7 @@ service to other computers in the network. %setup -q -n %{name}-%{version}%{?prerelease} -a 10 %{?gitpatch:%patch0 -p1} %patch2 -p1 -b .service-helper +%patch3 -p1 -b .test %{?gitpatch: echo %{version}-%{gitpatch} > version.txt}