# HG changeset patch
# User Xidorn Quan <me@upsuper.org>
# Date 1525245205 -36000
# Node ID e8616e9830d785506c79ed0280dc8486067c9d46
# Parent  0706b55eb372d53678271a9404fd177f1b3d0c19
Bug 1457524 part 2 - Run all rust tests regardless of failures. r=froydnj

MozReview-Commit-ID: K4ZhFOWd6gd

diff --git a/config/rules.mk b/config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -977,18 +977,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)"
