mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Disable default features for cargo test
Unfortunately it does not appear like #[cfg(test)] works for build.rs? Investigating a better solution, but this is a good idea anyway (or `make test` would generate man pages via build.rs!)
This commit is contained in:
parent
6c852655dd
commit
327aa964e9
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ endif()
|
|||
|
||||
add_test(
|
||||
NAME "cargo-test"
|
||||
COMMAND env ${VARS_FOR_CARGO} cargo test ${CARGO_FLAGS} --workspace --target-dir ${rust_target_dir} ${cargo_test_flags}
|
||||
COMMAND env ${VARS_FOR_CARGO} cargo test --no-default-features ${CARGO_FLAGS} --workspace --target-dir ${rust_target_dir} ${cargo_test_flags}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
)
|
||||
set_tests_properties("cargo-test" PROPERTIES SKIP_RETURN_CODE ${SKIP_RETURN_CODE})
|
||||
|
|
Loading…
Reference in a new issue