|
|
|
@ -10,10 +10,7 @@ do
|
|
|
|
find examples/v1 -name $event_type -o -name "$event_type#*" | while read exline
|
|
|
|
find examples/v1 -name $event_type -o -name "$event_type#*" | while read exline
|
|
|
|
do
|
|
|
|
do
|
|
|
|
echo " against $exline"
|
|
|
|
echo " against $exline"
|
|
|
|
# run z-schema and dump stdout/err to the terminal (good for Jenkin's Console Output) and grep for fail messages
|
|
|
|
# run z-schema: because of bash -e if this fails we bail with exit code 1
|
|
|
|
if [[ -n $(z-schema schema/v1/$event_type $exline 2>&1 | tee /dev/tty | grep -Ei "error|failed") ]]; then
|
|
|
|
z-schema schema/v1/$event_type $exline
|
|
|
|
echo " Failed."
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|