From bec51b136b5455e313fb7f8191d3d90cfacc97ec Mon Sep 17 00:00:00 2001 From: LoveAn Date: Wed, 9 Dec 2020 17:16:10 +0800 Subject: [PATCH] Revert matching file modification status, test=document_fix (#29514) --- tools/test_op_benchmark.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test_op_benchmark.sh b/tools/test_op_benchmark.sh index 5b43915d64a..afe697ba98d 100644 --- a/tools/test_op_benchmark.sh +++ b/tools/test_op_benchmark.sh @@ -64,7 +64,8 @@ function load_CHANGE_OP_FILES_by_header_file { # Load op files that PR changes function load_CHANGE_OP_FILES { local sub_dir change_file - for change_file in $(git diff --name-status origin/develop | grep "^M" | awk '{print $2}') + # TODO(Avin0323): Need to filter the files added by the new OP. + for change_file in $(git diff --name-only origin/develop) do # match directory limit [[ "$change_file" =~ "paddle/fluid/operators/" ]] || continue -- GitLab