Skip to content

Commit

Permalink
[ci]: exit kvmtest on the first error (#6489)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan committed Jan 19, 2021
1 parent 755c737 commit 52afc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ stages:
pwd
username=$(id -un)
docker exec sonic-mgmt bash -c "/data/sonic-mgmt/tests/kvmtest.sh -n $(tbname) $(dut)"
docker exec sonic-mgmt bash -c "/data/sonic-mgmt/tests/kvmtest.sh -en $(tbname) $(dut)"
# save dut state if test fails
if [ $? != 0 ]; then
Expand All @@ -137,7 +137,7 @@ stages:
rm -rf ptfdump
mkdir -p ptfdump
docker commit $ptf_name docker-ptf:$(Build.BuildNumber)
docker commit $(ptf_name) docker-ptf:$(Build.BuildNumber)
docker save docker-ptf:$(Build.BuildNumber) | gzip -c > ptfdump/docker-ptf-dump.gz
docker rmi docker-ptf:$(Build.BuildNumber)
Expand Down

0 comments on commit 52afc80

Please sign in to comment.