Skip to content

Commit

Permalink
rhel: Fix tests on mock and koji
Browse files Browse the repository at this point in the history
Currently many tests fails on mock/koji since /etc/resolv.conf is not
present. The unexpected warning causes them to abort.

After this patch an empty resolv.conf is created and used before issuing
"make check".

Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
drizzt authored and blp committed Feb 28, 2019
1 parent f385abd commit 0bdc0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rhel/openvswitch-fedora.spec.in
Expand Up @@ -302,6 +302,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libovn*

%check
%if %{with check}
touch resolv.conf
export OVS_RESOLV_CONF=$(pwd)/resolv.conf
if make check TESTSUITEFLAGS='%{_smp_mflags}' RECHECK=yes; then :;
else
cat tests/testsuite.log
Expand Down
2 changes: 2 additions & 0 deletions rhel/ovn-fedora.spec.in
Expand Up @@ -212,6 +212,8 @@ rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openvswitch

%check
%if %{with check}
touch resolv.conf
export OVS_RESOLV_CONF=$(pwd)/resolv.conf
if make check TESTSUITEFLAGS='%{_smp_mflags}' RECHECK=yes; then :;
else
cat tests/testsuite.log
Expand Down

0 comments on commit 0bdc0bf

Please sign in to comment.