mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 10:57:10 +08:00
[CI][Neuron] Fail and exit on first error (#19622)
Signed-off-by: Elaine Zhao <elaineyz@amazon.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
ee9a1531aa
commit
b6bad3d186
@ -54,10 +54,11 @@ docker run --rm -it --device=/dev/neuron0 --network bridge \
|
|||||||
--name "${container_name}" \
|
--name "${container_name}" \
|
||||||
${image_name} \
|
${image_name} \
|
||||||
/bin/bash -c "
|
/bin/bash -c "
|
||||||
|
set -e; # Exit on first error
|
||||||
python3 /workspace/vllm/examples/offline_inference/neuron.py;
|
python3 /workspace/vllm/examples/offline_inference/neuron.py;
|
||||||
python3 -m pytest /workspace/vllm/tests/neuron/1_core/ -v --capture=tee-sys;
|
python3 -m pytest /workspace/vllm/tests/neuron/1_core/ -v --capture=tee-sys;
|
||||||
for f in /workspace/vllm/tests/neuron/2_core/*.py; do
|
for f in /workspace/vllm/tests/neuron/2_core/*.py; do
|
||||||
echo 'Running test file: '$f;
|
echo \"Running test file: \$f\";
|
||||||
python3 -m pytest \$f -v --capture=tee-sys;
|
python3 -m pytest \$f -v --capture=tee-sys;
|
||||||
done
|
done
|
||||||
"
|
"
|
||||||
Loading…
x
Reference in New Issue
Block a user