From a711d19fcd6e4f82995ad46b48ddd28fff16ffa3 Mon Sep 17 00:00:00 2001 From: xumia Date: Mon, 20 Sep 2021 23:33:54 +0000 Subject: [PATCH 1/2] Support code diff coverage --- .azure-pipelines/build-template.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index 8fc68c31c..d45c6a4c8 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -41,6 +41,10 @@ jobs: - job: displayName: ${{ parameters.arch }} timeoutInMinutes: ${{ parameters.timeout }} + variables: + DIFF_COVER_CHECK_THRESHOLD: 0 + ${{ if ne(parameters.run_unit_test, false) }}: + DIFF_COVER_DISABLE: 'false' pool: ${{ if ne(parameters.pool, 'default') }}: From 2e97f3a4d5862ef48b73493a0f666112f4f23112 Mon Sep 17 00:00:00 2001 From: xumia Date: Thu, 23 Sep 2021 09:17:50 +0000 Subject: [PATCH 2/2] Change the variable name to DIFF_COVER_ENABLE --- .azure-pipelines/build-template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index d45c6a4c8..23b0203de 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -43,8 +43,8 @@ jobs: timeoutInMinutes: ${{ parameters.timeout }} variables: DIFF_COVER_CHECK_THRESHOLD: 0 - ${{ if ne(parameters.run_unit_test, false) }}: - DIFF_COVER_DISABLE: 'false' + ${{ if eq(parameters.run_unit_test, true) }}: + DIFF_COVER_ENABLE: 'true' pool: ${{ if ne(parameters.pool, 'default') }}: