From a9fb054790798a408ef83d1050b340bd661230ac Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 10 Oct 2026 22:40:17 +0200 Subject: [PATCH 1/2] Treat "env changed" as a warning, not a failure --- master/custom/steps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/master/custom/steps.py b/master/custom/steps.py index 14e79bcd..ea37cc77 100644 --- a/master/custom/steps.py +++ b/master/custom/steps.py @@ -122,6 +122,9 @@ class Test(BaseTest): decodeRC = { 0: SUCCESS, + # Do not mark "env changed" as a failure, but a warning + 3: WARNINGS, # EXITCODE_ENV_CHANGED + # Treat --fail-rerun exit code (5) to WARNINGS, when a test failed but # passed when run again in verbose mode in a fresh process (unstable # test). @@ -131,7 +134,6 @@ class Test(BaseTest): # So there is no need to map each regrtest exit code to FAILURE. # # 2: FAILURE, # EXITCODE_BAD_TEST - # 3: FAILURE, # EXITCODE_ENV_CHANGED # 4: FAILURE, # EXITCODE_NO_TESTS_RAN # 130: FAILURE, # EXITCODE_INTERRUPTED } From adb7c0c5743232a5ad1cd5770c68a955447fb51b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 10 Oct 2026 22:44:26 +0200 Subject: [PATCH 2/2] typo --- master/custom/steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/custom/steps.py b/master/custom/steps.py index ea37cc77..ff6812ce 100644 --- a/master/custom/steps.py +++ b/master/custom/steps.py @@ -122,7 +122,7 @@ class Test(BaseTest): decodeRC = { 0: SUCCESS, - # Do not mark "env changed" as a failure, but a warning + # Do not mark "env changed" as a failure, but as a warning 3: WARNINGS, # EXITCODE_ENV_CHANGED # Treat --fail-rerun exit code (5) to WARNINGS, when a test failed but