Bug 1457524 part 2 - Run all rust tests regardless of failures. r?froydnj
MozReview-Commit-ID: K4ZhFOWd6gd
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -960,18 +960,21 @@ endif # RUST_LIBRARY_FILE
ifdef RUST_TESTS
rust_test_options := $(foreach test,$(RUST_TESTS),-p $(test))
ifdef RUST_TEST_FEATURES
rust_features_flag := --features "$(RUST_TEST_FEATURES)"
endif
+# Don't stop at the first failure. We want to list all failures together.
+rust_test_flag := --no-fail-fast
+
force-cargo-test-run:
- $(call RUN_CARGO,test $(cargo_target_flag) $(rust_test_options) $(rust_features_flag),$(target_cargo_env_vars))
+ $(call RUN_CARGO,test $(cargo_target_flag) $(rust_test_flag) $(rust_test_options) $(rust_features_flag),$(target_cargo_env_vars))
check:: force-cargo-test-run
endif
ifdef HOST_RUST_LIBRARY_FILE
ifdef HOST_RUST_LIBRARY_FEATURES
host_rust_features_flag := --features "$(HOST_RUST_LIBRARY_FEATURES)"