X Tutup
Skip to content

Commit 81ea9cc

Browse files
committed
updated test_validate_avro.sh
1 parent a42db16 commit 81ea9cc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/test_validate_avro.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ broken_dir="tests/avro_broken"
3939
rm -f "$data_dir/test.avro"
4040
cp -v "$(find . -type f -iname '*.avro' | head -n1)" "$data_dir/test.avro"
4141

42+
export exclude='/tests/spark-\d+\.\d+.\d+-bin-hadoop\d+.\d+$|broken|error'
43+
4244
if is_inside_docker; then
4345
export TIMEOUT=120
4446
fi
4547

4648
rm -fr "$broken_dir" || :
4749
mkdir "$broken_dir"
48-
./validate_avro.py -vvv $(
49-
find "${1:-.}" -type f -iname '*.avro' |
50-
grep -v '/spark-.*-bin-hadoop.*/' |
51-
grep -v -e 'broken' -e 'error' -e ' '
52-
)
50+
51+
./validate_avro.py -vvv --exclude "$exclude" .
5352
echo
5453

5554
echo
@@ -69,7 +68,7 @@ rm "$data_dir/testlink.avro"
6968
echo
7069

7170
echo "checking avro file without an extension"
72-
cp -iv "$(find "${1:-.}" -type f -iname '*.avro' | grep -v -e '/spark-.*-bin-hadoop.*/' -e 'broken' -e 'error' | head -n1)" "$broken_dir/no_extension_testfile"
71+
cp -iv "$(find "${1:-.}" -type f -iname '*.avro' | grep -v -e '/spark-.*-bin-hadoop.*/' | head -n1)" "$broken_dir/no_extension_testfile"
7372
./validate_avro.py -vvv -t 1 "$broken_dir/no_extension_testfile"
7473
echo
7574

0 commit comments

Comments
 (0)
X Tutup