We're engaged in trying to make a Fedora/RHEL compatible spec file for stratisd and ran into a problem, the description of which I've linked to here: https://github.com/stratis-storage/ci/pull/128#discussion_r541474296. Essentially, it was necessary to have an additional '--' before the test-specific options for Fedora, but not for RHEL. It seems that the RHEL macros tolerate the extra '--' and the Fedora macros require it in order not to fail.
Right now we have a hacky fallback that works. A more formal fallback would be to use a if 0%rhel to separate the correct-for-Fedora %check expansion from the correct-for-RHEL one.
if 0%rhel
But it seems odd to me that the macro should consume the argument separator, so I'm putting it up as a probable bug.
This is not a bug. The first -- separates macro arguments from cargo test arguments, and the second -- separates cargo test arguments from test runner arguments (of which --skip is one).
--
cargo test
--skip
Thanks for the answer!
Metadata Update from @mulhern: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.