Fail CI manifest test if response content is not expected (#1145)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Co-authored-by: Abolfazl Shahbazi <12436063+ashahba@users.noreply.github.com>
This commit is contained in:
Lianhao Lu
2024-11-17 12:46:31 +08:00
committed by GitHub
parent 3b1a9fe9e1
commit cbe952ec5e
6 changed files with 8 additions and 2 deletions

View File

@@ -46,12 +46,13 @@ function validate_docsum() {
echo "Checking response results, make sure the output is reasonable. "
local status=false
if [[ -f $LOGFILE ]] && \
[[ $(grep -c "versatile toolkit" $LOGFILE) != 0 ]]; then
[[ $(grep -c "embedding" $LOGFILE) != 0 ]]; then
status=true
fi
if [ $status == false ]; then
echo "Response check failed, please check the logs in artifacts!"
exit 1
else
echo "Response check succeed!"
fi

View File

@@ -46,12 +46,13 @@ function validate_docsum() {
echo "Checking response results, make sure the output is reasonable. "
local status=false
if [[ -f $LOGFILE ]] && \
[[ $(grep -c "versatile toolkit" $LOGFILE) != 0 ]]; then
[[ $(grep -c "embedding" $LOGFILE) != 0 ]]; then
status=true
fi
if [ $status == false ]; then
echo "Response check failed, please check the logs in artifacts!"
exit 1
else
echo "Response check succeed!"
fi