diff --git a/script/run.sh b/script/run.sh index 77a332c8..82c45edb 100644 --- a/script/run.sh +++ b/script/run.sh @@ -9,6 +9,10 @@ for name in "${NAMES[@]}"; do for file in data/processed/*"$name"*wo_doc.py; do + if [[ "$name" == "zhihan" && ! "$file" =~ .*[[:digit:]]{4}_(981|98[2-9]|99[0-9]|100[0-9]|101[0-9]|102[0-9]|1031)_zhihan.* ]]; then + continue + fi + if ! pytest "$file"; then echo "Pytest failed on $file, stopping..." exit 1 @@ -16,7 +20,11 @@ for name in "${NAMES[@]}"; do done for file in data/processed/*"$name"*w_doc.py; do - # check skip any file with "f_2248_hanhu" inside + + if [[ "$name" == "zhihan" && ! "$file" =~ .*[[:digit:]]{4}_(981|98[2-9]|99[0-9]|100[0-9]|101[0-9]|102[0-9]|1031)_zhihan.* ]]; then + continue + fi + if [[ "$file" == *"f_2248_hanhu"* ]]; then continue fi @@ -26,4 +34,4 @@ for name in "${NAMES[@]}"; do exit 1 fi done -done \ No newline at end of file +done