X Tutup
Skip to content

Commit 8552401

Browse files
committed
updated test_validate_avro.sh
1 parent ed1a00a commit 8552401

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_validate_avro.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ data_dir="tests/data"
3535
broken_dir="tests/avro_broken"
3636
# this relies on being run after the Spark => Avro tests to generate these files as I don't store avro files in this repo
3737
rm -f "$data_dir/test.avro"
38+
# find will exit non-zero due to broken pipe caused by head
39+
set +o pipefail
3840
sample_avro_file="$(find . -type f -iname '*.avro' | head -n1)"
41+
set -o pipefail
3942
if [ -z "$sample_avro_file" ] && is_inside_docker; then
4043
echo "No sample avro file found and running inside docker, skipping validate_avro.py tests"
4144
exit 0

0 commit comments

Comments
 (0)
X Tutup