From 4b345092bc82a0573f60070f7b05866bc866cb15 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Mon, 14 Nov 2016 13:34:32 -0500 Subject: [PATCH] Fix race condition in one of the tests --- tang.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tang.spec b/tang.spec index 446c594..cffc183 100644 --- a/tang.spec +++ b/tang.spec @@ -1,6 +1,6 @@ Name: tang Version: 4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Network Presence Binding Daemon License: GPLv3+ @@ -61,6 +61,7 @@ echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service %{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name} %check +%{__sed} -i 's|\./tang -u|sleep 0.5; ./tang -u|' ./test-nagios if ! make %{?_smp_mflags} check; then cat test-suite.log false @@ -101,6 +102,9 @@ exit 0 %{_libdir}/nagios/plugins/%{name} %changelog +* Mon Nov 14 2016 Nathaniel McCallum - 4-2 +- Fix a race condition in one of the tests + * Thu Nov 10 2016 Nathaniel McCallum - 4-1 - New upstream release - Add nagios subpackage