From b8c668896757be065ce18ead863c0af7e6206a82 Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Thu, 8 Dec 2022 15:46:49 +0800 Subject: [PATCH] fix tmp directories (#48863) --- .../tests/unittests/distributed_passes/dist_pass_test_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py b/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py index 46e8870821d..bb9cb4a8860 100644 --- a/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py +++ b/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py @@ -190,7 +190,7 @@ class DistPassTestBase(unittest.TestCase): else: output_dir = "test_without_pass_{}".format(pid) remove_path_if_exists(output_dir) - os.makedirs(output_dir, mode=777) + os.makedirs(output_dir, mode=0o777) input_dump_file = os.path.join(output_dir, 'inputs.bin') model_dump_file = os.path.join(output_dir, 'model.bin') @@ -269,7 +269,7 @@ class DistPassTestBase(unittest.TestCase): class PassConflictChecker(DistPassTestBase): def setUp(self): - os.environ['DEBUG'] = '1' # to save the debug directory + os.environ['DEBUG'] = '0' super().setUp() def pass_config(self): -- GitLab