Skip to content

Commit

Permalink
Do not compile tests when vendoring
Browse files Browse the repository at this point in the history
Test may fail to compile due to loopdev crate FTBFS.
See stratis-storage/project#607

Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Apr 17, 2023
1 parent d24a5e6 commit b10312e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mockbuild_test/stratisd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,12 @@ a2x -f manpage docs/stratis-dumpmetadata.txt

%if %{with check}
%check
%if 0%{?rhel}
%cargo_test --no-run
%else
# Compile stratisd tests only where package does not use vendoring.
# This is a temporary step, to address the problem of loopdev crate
# 0.4.0 failing to build properly in some situations due to a failure of
# bindgen 0.59.0.
# See https://github.com/stratis-storage/project/issues/607
%if !0%{?rhel}
%cargo_test -- --no-run
%endif
%endif
Expand Down

0 comments on commit b10312e

Please sign in to comment.