fix test suite to pass quick check
This commit is contained in:
parent
390c7e1ccc
commit
b5d5ccb905
20
chrony-test.patch
Normal file
20
chrony-test.patch
Normal file
@ -0,0 +1,20 @@
|
||||
commit 49d52b547fe1e66aac5b0799c6918ae3a5a831da
|
||||
Author: Miroslav Lichvar <mlichvar@redhat.com>
|
||||
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
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user