diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index 470242da34ddd..0df3b4914f5df 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -233,9 +233,9 @@ def is_only_comment(self, f): 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())