@@ -16,14 +16,6 @@ parameters:
16
16
type : boolean
17
17
default : false
18
18
19
- - name : docker_sonic_vs_name
20
- type : string
21
- default : docker-sonic-vs
22
-
23
- - name : asan
24
- type : boolean
25
- default : false
26
-
27
19
jobs :
28
20
- job :
29
21
displayName : vstest
38
30
- checkout : self
39
31
- task : DownloadPipelineArtifact@2
40
32
inputs :
41
- artifact : ${{ parameters.docker_sonic_vs_name }}
33
+ artifact : docker-sonic-vs
42
34
path : $(Build.ArtifactStagingDirectory)/download
43
- displayName : " Download pre-stage built ${{ parameters.docker_sonic_vs_name }} "
35
+ displayName : " Download pre-stage built docker-sonic-vs "
44
36
- task : DownloadPipelineArtifact@2
45
37
inputs :
46
38
source : specific
85
77
test_set+=("${test}")
86
78
if [ ${#test_set[@]} -ge 20 ]; then
87
79
test_name=$(echo "${test_set[0]}" | cut -d "." -f 1)
88
- echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --keeptb --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber).asan-${{ parameters.asan }}
80
+ echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --keeptb --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
89
81
container_count=$(docker ps -q -a | wc -l)
90
82
if [ ${container_count} -gt 0 ]; then
91
83
./gcov_support.sh set_environment $(Build.ArtifactStagingDirectory)
97
89
done
98
90
if [ ${#test_set[@]} -gt 0 ]; then
99
91
test_name=$(echo "${test_set[0]}" | cut -d "." -f 1)
100
- echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --keeptb --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber).asan-${{ parameters.asan }}
92
+ echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --keeptb --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
101
93
container_count=$(docker ps -q -a | wc -l)
102
94
if [ ${container_count} -gt 0 ]; then
103
95
./gcov_support.sh set_environment $(Build.ArtifactStagingDirectory)
@@ -106,13 +98,8 @@ jobs:
106
98
fi
107
99
fi
108
100
else
109
- test_args=""
110
- if [ '${{ parameters.asan }}' == True ]; then
111
- test_args="--graceful-stop"
112
- fi
113
- sudo py.test $test_args -v --force-flaky --junitxml=tests_tr.xml --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber).asan-${{ parameters.asan }}
101
+ sudo py.test -v --force-flaky --junitxml=tests_tr.xml --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
114
102
fi
115
-
116
103
rm -rf $(Build.ArtifactStagingDirectory)/download
117
104
displayName: "Run vs tests"
118
105
@@ -125,10 +112,6 @@ jobs:
125
112
- script : |
126
113
cp -r tests/log $(Build.ArtifactStagingDirectory)/
127
114
128
- if [ '${{ parameters.asan }}' == True ]; then
129
- cp -r tests/log/*/log/asan $(Build.ArtifactStagingDirectory)/
130
- fi
131
-
132
115
if [ '${{ parameters.archive_gcov }}' == True ]; then
133
116
sudo apt-get install -y lcov
134
117
cd $(Build.ArtifactStagingDirectory)/gcov_tmp/
@@ -147,17 +130,3 @@ jobs:
147
130
artifact : ${{ parameters.log_artifact_name }}@$(System.JobAttempt)
148
131
displayName : " Publish logs"
149
132
condition : always()
150
-
151
- - publish : $(Build.ArtifactStagingDirectory)/asan
152
- artifact : asan-reports
153
- displayName : " Publish ASAN reports"
154
- condition : eq('${{ parameters.asan }}', true)
155
-
156
- - script : |
157
- if [ "$(ls -A $(Build.ArtifactStagingDirectory)/asan)" ]; then
158
- echo "There are issues reported by ASAN"
159
- else
160
- echo "No issues reported by ASAN"
161
- fi
162
- displayName: "Check ASAN reports"
163
- condition: eq('${{ parameters.asan }}', true)
0 commit comments