Fix running unit tests through the old test runner.

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

chipx86
Django Evolution
release-2.x
django-evolution

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
Fix running unit tests through the old test runner.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (0337f32)
Loading...