From 7c8e980a48620eb7d30d16c659be9ca7183c78ad Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Wed, 9 Sep 2020 20:52:16 +0800 Subject: [PATCH] fix enforce shell dir, test=document_fix (#27215) --- tools/enforce/count_all_enforce.sh | 2 +- tools/enforce/count_enforce_by_dir.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/enforce/count_all_enforce.sh b/tools/enforce/count_all_enforce.sh index c1b7508de0..683b73614d 100644 --- a/tools/enforce/count_all_enforce.sh +++ b/tools/enforce/count_all_enforce.sh @@ -39,7 +39,7 @@ # Valid PADDLE_ENFORCE{_**} & PADDLE_THROW Count: 1706 # Invalid PADDLE_ENFORCE{_**} & PADDLE_THROW Count: 4572 -ROOT_DIR=../paddle/fluid +ROOT_DIR=../../paddle/fluid ALL_PADDLE_CHECK_CNT=0 VALID_PADDLE_CHECK_CNT=0 diff --git a/tools/enforce/count_enforce_by_dir.sh b/tools/enforce/count_enforce_by_dir.sh index 03233d417a..3cb13edf7c 100644 --- a/tools/enforce/count_enforce_by_dir.sh +++ b/tools/enforce/count_enforce_by_dir.sh @@ -59,7 +59,7 @@ . ./count_all_enforce.sh --source-only -ROOT_DIR=../paddle/fluid +ROOT_DIR=../../paddle/fluid function count_dir_independently(){ local sub_dir_total_check_cnt=0 -- GitLab