test-backend: Default to running all tests.

This switches the default of the previous --nonfatal-errors option,
and also moves to use the `-x | --stop` names used by the nose test
framework.
This commit is contained in:
Tim Abbott
2021-07-30 16:15:06 -07:00
parent aa651f75c1
commit f84703bc48
2 changed files with 12 additions and 12 deletions

View File

@@ -223,10 +223,11 @@ def main() -> None:
)
parser.add_argument(
"--nonfatal-errors",
action="store_false",
"-x",
"--stop",
action="store_true",
dest="fatal_errors",
help="Continue past test failures to run all tests",
help="Stop running tests after the first failure.",
)
parser.add_argument("--coverage", action="store_true", help="Compute test coverage.")
parser.add_argument(
@@ -257,8 +258,7 @@ def main() -> None:
"--rerun",
action="store_true",
help=(
"Run the tests which failed the last time "
"test-backend was run. Implies --nonfatal-errors."
"Run the tests which failed the last time " "test-backend was run. Implies not --stop."
),
)
parser.add_argument(
@@ -294,7 +294,7 @@ def main() -> None:
# While running --rerun, we read var/last_test_failure.json to get
# the list of tests that failed on the last run, and then pretend
# those tests were passed explicitly. --rerun implies
# --nonfatal-errors, so that we don't end up removing tests from
# !fatal_errors, so that we don't end up removing tests from
# the list that weren't run.
if options.rerun:
parallel = 1