Skip to content

Commit 33bdd01

Browse files
committed
build-sys/rpm: Disable unit tests if we detect we're in seccomp
Workaround for rpm-software-management/mock#1613 (comment) Signed-off-by: Colin Walters <[email protected]>
1 parent eaa155a commit 33bdd01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/packaging/bootc.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ find %{?buildroot}/%{_docdir} ! -type d -printf '%{_docdir}/%%P\n' > bootcdoclis
143143

144144
%if %{with check}
145145
%check
146-
%cargo_test
146+
if grep -qEe 'Seccomp:.*0$' /proc/self/status; then
147+
%cargo_test
148+
else
149+
echo "skipping unit tests due to https://github.com/rpm-software-management/mock/pull/1613#issuecomment-3421908652"
150+
fi
147151
%endif
148152

149153
%files -f bootcdoclist.txt

0 commit comments

Comments
 (0)