summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
Diffstat (limited to 'rhel')
-rw-r--r--rhel/openvswitch-fedora.spec.in2
-rw-r--r--rhel/ovn-fedora.spec.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 9be31ada0..eec98485f 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -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
diff --git a/rhel/ovn-fedora.spec.in b/rhel/ovn-fedora.spec.in
index 15f3352ca..ea44e49cc 100644
--- a/rhel/ovn-fedora.spec.in
+++ b/rhel/ovn-fedora.spec.in
@@ -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