mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 03:35:17 +08:00
Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
19 lines
385 B
Bash
19 lines
385 B
Bash
#!/bin/bash
|
|
|
|
# Usage: ./rerun_test.sh path/to/test.py::test_name
|
|
|
|
# Check if argument is given
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: $0 path/to/test.py::test_name"
|
|
echo "Example: $0 tests/v1/engine/test_engine_core_client.py::test_kv_cache_events[True-tcp]"
|
|
exit 1
|
|
fi
|
|
|
|
TEST=$1
|
|
COUNT=1
|
|
|
|
while pytest -sv "$TEST"; do
|
|
COUNT=$((COUNT + 1))
|
|
echo "RUN NUMBER ${COUNT}"
|
|
done
|