From ce53a51e25fee38d8882dba24fc1e6f6119bf3c1 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Thu, 28 Apr 2022 08:36:16 +0000 Subject: [PATCH 1/2] Make the "t0-sonic" check of PR testing optional The "t0-sonic" check of PR testing is still unstable. This check should not block PR merging. This change added code to make check results of "t0-sonic" optional. Signed-off-by: Xin Wang --- .azure-pipelines/run-test-template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure-pipelines/run-test-template.yml b/.azure-pipelines/run-test-template.yml index 23d91fca84..2439255cc7 100644 --- a/.azure-pipelines/run-test-template.yml +++ b/.azure-pipelines/run-test-template.yml @@ -59,6 +59,8 @@ steps: parent_dir=$(basename $PWD) docker exec sonic-mgmt-2 bash -c "/var/src/$parent_dir/tests/kvmtest.sh -en -T ${{ parameters.tbtype }} -d /var/src/$parent_dir ${{ parameters.tbname }} ${{ parameters.dut }} ${{ parameters.section }}" displayName: "Run tests" + ${{ if eq(parameters.tbtype, "t0-sonic") }}: + continueOnError: true - script: | # save dut state if test fails From 2328fe5ed3436b023f154029ebe3c66fecd25eff Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Thu, 28 Apr 2022 09:08:48 +0000 Subject: [PATCH 2/2] Try if single quote can solve the unrecognized value issue --- .azure-pipelines/run-test-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/run-test-template.yml b/.azure-pipelines/run-test-template.yml index 2439255cc7..6dfb174fb5 100644 --- a/.azure-pipelines/run-test-template.yml +++ b/.azure-pipelines/run-test-template.yml @@ -59,7 +59,7 @@ steps: parent_dir=$(basename $PWD) docker exec sonic-mgmt-2 bash -c "/var/src/$parent_dir/tests/kvmtest.sh -en -T ${{ parameters.tbtype }} -d /var/src/$parent_dir ${{ parameters.tbname }} ${{ parameters.dut }} ${{ parameters.section }}" displayName: "Run tests" - ${{ if eq(parameters.tbtype, "t0-sonic") }}: + ${{ if eq(parameters.tbtype, 't0-sonic') }}: continueOnError: true - script: |