Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Dec 12, 2024
1 parent c3bf7dd commit 8de35a4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
File renamed without changes.
28 changes: 10 additions & 18 deletions tests/e2e/vLLM/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,27 @@ while getopts "c:t:" OPT; do
esac
done

# Function to process a file
process_model_config() {
local MODEL_CONFIG=$1
# Parse list of configs.
for MODEL_CONFIG in "$CONFIG"/*
do
LOCAL_SUCCESS=0

echo "=== RUNNING MODEL: $MODEL_CONFIG ==="
export TEST_DATA_FILE=${MODEL_CONFIG}

export TEST_DATA_FILE="$MODEL_CONFIG"
pytest \
-r a \
--capture=tee-sys \
--junitxml="test-results/e2e-$(date +%s).xml" \
"$TEST" || LOCAL_SUCCESS=$?

if [[ $LOCAL_SUCCESS == 0 ]]; then
echo "=== PASSED MODEL: ${MODEL_CONFIG} ==="
echo "=== PASSED MODEL: $MODEL_CONFIG ==="
else
echo "=== FAILED MODEL: ${MODEL_CONFIG} ==="
echo "=== FAILED MODEL: $MODEL_CONFIG ==="
fi

SUCCESS=$((SUCCESS + LOCAL_SUCCESS))
}

# Use find to locate all files in MODEL_CONFIGS and process them
find "$MODEL_CONFIGS" -type f | while read -r MODEL_CONFIG
do
process_model_config "$MODEL_CONFIG"
done

if [ "${SUCCESS}" -eq "0" ]; then
exit 0
else
exit 1
fi
exit "$SUCCESS"

0 comments on commit 8de35a4

Please sign in to comment.