From ef27a4a21cc8c581d9f3783b3a9bc802e26820fd Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Tue, 9 Jul 2024 07:49:01 +0000 Subject: [PATCH] Bug 1905493 - remove task_try_config.json after `mach try` r=glandium Differential Revision: https://phabricator.services.mozilla.com/D215733 --- tools/tryselect/push.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tryselect/push.py b/tools/tryselect/push.py index 1793bf062b93..44785d7b0150 100644 --- a/tools/tryselect/push.py +++ b/tools/tryselect/push.py @@ -265,3 +265,8 @@ def push_to_try( else: raise sys.exit(1) + finally: + if "try_task_config.json" in changed_files and os.path.isfile( + "try_task_config.json" + ): + os.remove("try_task_config.json")