Skip to content

Commit b4fd51d

Browse files
committed
Optimize the log of check-validate.
1 parent e5e9e9c commit b4fd51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/ci/check_validate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export PYTHONPATH=${GRAPH_NET_EXTRACT_WORKSPACE}:$PYTHONPATH
1414
[ -z "$CUDA_VISIBLE_DEVICES" ] && CUDA_VISIBLE_DEVICES="0"
1515

1616
function prepare_env() {
17-
num_changed_files=$(git diff --name-only develop | grep -E "samples/(.*\.py|.*\.json)" | wc -l)
18-
if [ ${num_changed_files} -eq 0 ]; then
19-
LOG "[INFO] This pull request doesn't change any files of op benchmark, skip the CI."
17+
num_changed_samples=$(git diff --name-only develop | grep -E "samples/(.*\.py|.*\.json)" | wc -l)
18+
if [ ${num_changed_samples} -eq 0 ]; then
19+
LOG "[INFO] This pull request doesn't change any samples, skip the CI."
2020
exit 0
2121
fi
2222

0 commit comments

Comments
 (0)