Fix running unit tests through the old test runner.

Review Request #12129 — Created March 9, 2022 and submitted

Information

Django Evolution
release-2.x

Reviewers

The old test runner (currently used in CI) had a regression when moving
to pytest. It failed to convert the first argument (the database name to
run everything against) to the new pytest --db= argument.

This change adds this back to the test runner. If an argument is passed,
and isn't --, it's expected to be the database name as before. All
other arguments are then passed as normal.

Ran the old test runner with/without a database name, with/without --,
and with/without specific tests to run.

Summary ID
Fix running unit tests through the old test runner.
The old test runner (currently used in CI) had a regression when moving to pytest. It failed to convert the first argument (the database name to run everything against) to the new `pytest --db=` argument. This change adds this back to the test runner. If an argument is passed, and isn't `--`, it's expected to be the database name as before. All other arguments are then passed as normal.
ac3b7766802723414c7a265ad265dab20e37b211
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (0337f32)
Loading...