]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpm: fix setting of VIR_TEST_DEBUG
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 5 Jun 2024 10:14:03 +0000 (11:14 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 5 Jun 2024 11:19:12 +0000 (12:19 +0100)
The %meson_test macro expands to have a newline at the start, so
rather than expanding to

  VIR_TEST_DEBUG=1 meson test ....

we get

  VIR_TEST_DEBUG=1
  meson test ....

which has no effect, since VIR_TEST_DEBUG isn't exported.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 5ca7b95e6cde1dbadda4718b3a463e63bb2e8be9..0f3c882f05d505f9d15370c6ff66eafe01b2e84d 100644 (file)
@@ -1592,7 +1592,8 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_libexecdir}/libvirt-guests.sh
 %if %{with_native}
 # Building on slow archs, like emulated s390x in Fedora copr, requires
 # raising the test timeout
-VIR_TEST_DEBUG=1 %meson_test --no-suite syntax-check --timeout-multiplier 10
+export VIR_TEST_DEBUG=1
+%meson_test --no-suite syntax-check --timeout-multiplier 10
 %endif
 
 %define libvirt_rpmstatedir %{_localstatedir}/lib/rpm-state/libvirt