File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 64
64
docker ps
65
65
ip netns list
66
66
pushd sonic-swss/tests
67
- sudo py.test -v --force-flaky --junitxml=tr.xml --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
67
+ all_tests=$(ls test_*.py)
68
+ all_tests="${all_tests} p4rt"
69
+ test_set=()
70
+ # Run 20 tests as a set.
71
+ for test in ${all_tests}; do
72
+ test_set+=("${test}")
73
+ if [ ${#test_set[@]} -ge 20 ]; then
74
+ test_name=$(echo "${test_set[0]}" | cut -d "." -f 1)
75
+ echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
76
+ test_set=()
77
+ fi
78
+ done
79
+ if [ ${#test_set[@]} -gt 0 ]; then
80
+ test_name=$(echo "${test_set[0]}" | cut -d "." -f 1)
81
+ echo "${test_set[*]}" | xargs sudo py.test -v --force-flaky --junitxml="${test_name}_tr.xml" --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber)
82
+ fi
68
83
rm -rf $(Build.ArtifactStagingDirectory)/download
69
84
displayName: "Run vs tests"
70
85
You can’t perform that action at this time.
0 commit comments