bpo-30764: regrtest: add --fail-env-changed option (#2402)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jun 2017 16:33:19 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2017 16:33:19 +0000 (18:33 +0200)
commit63f54c68936d648c70ca411661e4208329edcf26
tree39acfeec7ce7e2c2f9fb72977ed6cf53f97923b4
parentf5c58c781aa0bb296885baf62f4f39100f2cd93d
bpo-30764: regrtest: add --fail-env-changed option (#2402)

* bpo-30764: regrtest: change exit code on failure

* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted

* bpo-30764: regrtest: add --fail-env-changed option

If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/test_regrtest.py