From 52afc801b4dfee19bccac1e00887bedb1d24af76 Mon Sep 17 00:00:00 2001 From: lguohan Date: Mon, 18 Jan 2021 21:26:41 -0800 Subject: [PATCH] [ci]: exit kvmtest on the first error (#6489) Signed-off-by: Guohan Lu --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8a4178bca5b7..8ba75bd86872 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 @@ -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)