diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-05 00:56:36 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-05 00:56:36 +0200 |
| commit | a5360cc01f1418571d15d320431ade025265ca58 (patch) | |
| tree | eeeac8f0185888d0e2391a8a76abdb7d1f114432 /scripts | |
| parent | c367b51a70819c6f7328ef2f435d8536067f1199 (diff) | |
| download | psutil-a5360cc01f1418571d15d320431ade025265ca58.tar.gz | |
fix #1478: add make command to re-run tests failed on last run
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/winmake.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index cbdeebdc..75b4c348 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -318,6 +318,7 @@ def clean(): "*.~", "*__pycache__", ".coverage", + ".failed-tests.txt", ".tox", ) safe_rmtree("build") @@ -440,6 +441,15 @@ def test_by_name(): @cmd +def test_failed(): + """Re-run tests which failed on last run.""" + install() + test_setup() + sh('%s -c "import psutil.tests.runner as r; r.run(last_failed=True)"' % ( + PYTHON)) + + +@cmd def test_script(): """Quick way to test a script""" try: |
