From 7bae5e9a25088a3d86135c8065febbcc9e1f788d Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Wed, 21 Apr 2021 16:47:32 +0800 Subject: [PATCH] [CustomOp]Fix MAC3-CI random failed with XXX_setup.py(#32369) --- .../paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py b/python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py index b267617451..7f5c76d0ae 100644 --- a/python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py +++ b/python/paddle/fluid/tests/custom_op/test_custom_relu_op_setup.py @@ -142,7 +142,8 @@ class TestNewCustomOpSetUpInstall(unittest.TestCase): cmd = 'cd /d {} && python custom_relu_setup.py install'.format( cur_dir) else: - cmd = 'cd {} && python custom_relu_setup.py install'.format(cur_dir) + cmd = 'cd {} && {} custom_relu_setup.py install'.format( + cur_dir, sys.executable) run_cmd(cmd) # NOTE(Aurelius84): Normally, it's no need to add following codes for users. -- GitLab