From 9f6e5fdb5f6769019ffda1fed3817a224380da55 Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Tue, 25 May 2021 11:14:21 +0800 Subject: [PATCH] fix path error on windows when precision switch is turn on (#33025) --- tools/get_pr_ut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index 470242da34d..0df3b4914f5 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -233,9 +233,9 @@ class PRChecker(object): def get_all_count(self): os.system( - "cd %s/build && ctest -N|grep 'Total Tests:' | awk -F ': ' '{print $2}' > testCount" + "cd %sbuild && ctest -N|grep 'Total Tests:' | awk -F ': ' '{print $2}' > testCount" % PADDLE_ROOT) - f = open("%s/build/testCount" % PADDLE_ROOT) + f = open("%sbuild/testCount" % PADDLE_ROOT) testCount = f.read() f.close() return int(testCount.strip()) -- GitLab