Skip to content

Commit 028139c

Browse files
[0.8] exit if bm_files.sh input is not one of the expected inputs (#498)
exit if bm_files.sh input is not one of the expected inputs (#495) * exit if bm_files.sh input is bm-spaces * exit if no file * exit (cherry picked from commit 8ed43ab) Co-authored-by: meiravgri <109056284+meiravgri@users.noreply.github.com>
1 parent b79d5af commit 028139c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/benchmark/bm_files.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
BM_TYPE=$1
22
if [ -z "$BM_TYPE" ] || [ "$BM_TYPE" = "benchmarks-all" ]; then
33
file_name="all"
4-
elif [ "$BM_TYPE" = "bm-spaces" ]; then
5-
:
64
elif [ "$BM_TYPE" = "benchmarks-default" ] \
75
|| [ "$BM_TYPE" = "bm-basics-fp32-single" ] \
86
|| [ "$BM_TYPE" = "bm-basics-fp32-multi" ] \
@@ -30,6 +28,9 @@ then
3028
file_name="basic_fp16"
3129
elif [ "$BM_TYPE" = "bm-updated-fp32-single" ]; then
3230
file_name="updated"
31+
else
32+
echo "No files to download for BM_TYPE=$BM_TYPE"
33+
exit 0
3334
fi
3435

3536
cat tests/benchmark/data/hnsw_indices/hnsw_indices_$file_name.txt | xargs -n 1 -P 0 wget --no-check-certificate -P tests/benchmark/data

0 commit comments

Comments
 (0)