File tree 1 file changed +11
-6
lines changed
infrastructure/cdn-in-a-box/traffic_ops_integration_test
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 40
40
# if [[ -x ]]; then;./config.sh; done traffic_ops/run-go.sh
41
41
source config.sh
42
42
43
- exit_code=0
43
+ failed=0
44
+
44
45
for api_version in v{3..5}; do
45
46
./traffic_ops_${api_version} _integration_test -test.v -cfg=traffic-ops-test.conf -fixtures=tc-fixtures-${api_version} .json 2>&1 | ./go-junit-report --package-name=golang.test.toapi.${api_version} --set-exit-code > /junit/golang.test.toapi.${api_version} .xml && find /junit -type ' f' | xargs chmod 664
46
- declare ${api_version} _exit_code=$?
47
+ exit_code_var=${api_version} _exit_code
48
+ declare ${exit_code_var} =$?
49
+ cat /junit/golang.test.toapi.${api_version} .xml
50
+ if [[ ${! exit_code_var} -ne 0 ]]; then
51
+ echo " TO API ${api_version} tests failed"
52
+ failed=1
53
+ fi
47
54
done
48
55
49
- cat /junit/golang.test.toapi.v{3..5}.xml
50
-
51
-
52
- if [[ $v3_exit_code -eq 0 && $v4_exit_code -eq 0 ]]; then
56
+ if [[ $failed -eq 0 ]]; then
53
57
echo " TO API tests success"
54
58
else
55
59
echo " TO API tests failed"
56
60
exit 1
57
61
fi
62
+
You can’t perform that action at this time.
0 commit comments