@@ -8,13 +8,14 @@ load "${BATS_PLUGIN_PATH}/load.bash"
8
8
# export DOCKER_STUB_DEBUG=/dev/tty
9
9
# export DU_STUB_DEBUG=/dev/tty
10
10
11
+ export artifacts_tmp=" tests/tmp/junit-artifacts"
12
+ export annotation_tmp=" tests/tmp/junit-annotation"
13
+
14
+
11
15
@test " runs the annotator and creates the annotation" {
12
16
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS=" junits/*.xml"
13
17
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAIL_BUILD_ON_ERROR=false
14
18
15
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
16
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
17
-
18
19
stub mktemp \
19
20
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
20
21
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
@@ -39,9 +40,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
39
40
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS=" junits/*.xml"
40
41
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAIL_BUILD_ON_ERROR=true
41
42
42
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
43
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
44
-
45
43
stub mktemp \
46
44
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
47
45
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
@@ -67,9 +65,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
67
65
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAIL_BUILD_ON_ERROR=false
68
66
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_CONTEXT=" junit_custom_context"
69
67
70
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
71
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
72
-
73
68
stub mktemp \
74
69
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
75
70
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
@@ -93,9 +88,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
93
88
@test " doesn't create annotation unless there's failures" {
94
89
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS=" junits/*.xml"
95
90
96
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
97
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
98
-
99
91
stub mktemp \
100
92
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
101
93
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
@@ -124,9 +116,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
124
116
@test " fails if the annotation is larger than 1MB" {
125
117
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS=" junits/*.xml"
126
118
127
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
128
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
129
-
130
119
stub mktemp \
131
120
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
132
121
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
@@ -154,9 +143,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
154
143
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS=" junits/*.xml"
155
144
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAIL_BUILD_ON_ERROR=true
156
145
157
- artifacts_tmp=" tests/tmp/$PWD /junit-artifacts"
158
- annotation_tmp=" tests/tmp/$PWD /junit-annotation"
159
-
160
146
stub mktemp \
161
147
" -d junit-annotate-plugin-artifacts-tmp.XXXXXXXXXX : mkdir -p $artifacts_tmp ; echo $artifacts_tmp " \
162
148
" -d junit-annotate-plugin-annotation-tmp.XXXXXXXXXX : mkdir -p $annotation_tmp ; echo $annotation_tmp "
0 commit comments