File tree 14 files changed +8
-58
lines changed
14 files changed +8
-58
lines changed Original file line number Diff line number Diff line change @@ -52,4 +52,9 @@ os::util::environment::update_path_var
52
52
53
53
if [[ -z " ${OS_TMP_ENV_SET-} " ]]; then
54
54
os::util::environment::setup_tmpdir_vars " $( basename " $0 " " .sh" ) "
55
+ fi
56
+
57
+ # Allow setting $JUNIT_REPORT to toggle output behavior
58
+ if [[ -n " ${JUNIT_REPORT:- } " ]]; then
59
+ export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
55
60
fi
Original file line number Diff line number Diff line change @@ -45,11 +45,6 @@ export NETWORK_PLUGIN='redhat/openshift-ovs-multitenant'
45
45
os::cleanup::tmpdir
46
46
os::util::environment::setup_all_server_vars
47
47
48
- # Allow setting $JUNIT_REPORT to toggle output behavior
49
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
50
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
51
- fi
52
-
53
48
echo " Logging to ${LOG_DIR} ..."
54
49
55
50
os::log::system::start
Original file line number Diff line number Diff line change @@ -14,11 +14,6 @@ os::util::environment::setup_all_server_vars
14
14
os::util::environment::setup_time_vars
15
15
export HOME=" ${FAKE_HOME_DIR} "
16
16
17
- # Allow setting $JUNIT_REPORT to toggle output behavior
18
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
19
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
20
- fi
21
-
22
17
function cleanup() {
23
18
return_code=$?
24
19
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ os::util::environment::use_sudo
34
34
os::cleanup::tmpdir
35
35
os::util::environment::setup_all_server_vars
36
36
37
- # Allow setting $JUNIT_REPORT to toggle output behavior
38
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
39
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
40
- fi
41
-
42
37
os::log::system::start
43
38
44
39
os::start::configure_server
Original file line number Diff line number Diff line change 175
175
if [[ -n " ${junit_report} " ]]; then
176
176
# we need to generate jUnit xml
177
177
178
- test_output_file=" ${LOG_DIR} /test-go.log"
179
- export JUNIT_REPORT_OUTPUT=" ${test_output_file} "
180
178
test_error_file=" ${LOG_DIR} /test-go-err.log"
181
179
182
180
os::log::info " Running \` go test\` ..."
183
181
# we don't care if the `go test` fails in this pipe, as we want to generate the report and summarize the output anyway
184
182
set +o pipefail
185
183
186
184
go test -i ${gotest_flags} ${test_packages}
187
- go test ${gotest_flags} ${test_packages} 2> " ${test_error_file} " | tee " ${test_output_file } "
185
+ go test ${gotest_flags} ${test_packages} 2> " ${test_error_file} " | tee " ${JUNIT_REPORT_OUTPUT } "
188
186
189
187
test_return_code=" ${PIPESTATUS[0]} "
190
188
@@ -195,8 +193,8 @@ if [[ -n "${junit_report}" ]]; then
195
193
$( cat " ${test_error_file} " ) "
196
194
fi
197
195
198
- if grep -q ' WARNING: DATA RACE' " ${test_output_file } " ; then
199
- locations=( $( sed -n ' /WARNING: DATA RACE/=' " ${test_output_file } " ) )
196
+ if grep -q ' WARNING: DATA RACE' " ${JUNIT_REPORT_OUTPUT } " ; then
197
+ locations=( $( sed -n ' /WARNING: DATA RACE/=' " ${JUNIT_REPORT_OUTPUT } " ) )
200
198
if [[ " ${# locations[@]} " -gt 1 ]]; then
201
199
os::log::warning " \` go test\` detected data races."
202
200
os::log::warning " Details can be found in the full output file at lines ${locations[*]} ."
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ trap os::test::junit::reconcile_output EXIT
6
6
os::cleanup::tmpdir
7
7
os::util::environment::setup_all_server_vars
8
8
export HOME=" ${FAKE_HOME_DIR} "
9
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
10
9
11
10
# set verbosity so we can see that command output renders correctly
12
11
VERBOSE=1
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ os::log::info "Server logs will be at: ${LOG_DIR}/openshift.log"
21
21
os::log::info " Test artifacts will be in: ${ARTIFACT_DIR} "
22
22
os::log::info " Config dir is: ${SERVER_CONFIG_DIR} "
23
23
24
- # Allow setting $JUNIT_REPORT to toggle output behavior
25
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
26
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
27
- fi
28
-
29
24
mkdir -p ${LOG_DIR}
30
25
31
26
os::log::info " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ os::log::info "Config dir is: ${SERVER_CONFIG_DIR}"
30
30
os::log::info " Using images: ${USE_IMAGES} "
31
31
os::log::info " MasterIP is: ${MASTER_ADDR} "
32
32
33
- # Allow setting $JUNIT_REPORT to toggle output behavior
34
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
35
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
36
- fi
37
-
38
33
mkdir -p ${LOG_DIR}
39
34
40
35
os::log::info " Scan of OpenShift related processes already up via ps -ef | grep openshift : "
Original file line number Diff line number Diff line change 2
2
source " $( dirname " ${BASH_SOURCE} " ) /../../hack/lib/init.sh"
3
3
os::util::environment::setup_all_server_vars " test-extended/clusterup"
4
4
5
- # Allow setting $JUNIT_REPORT to toggle output behavior
6
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
7
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
8
- fi
9
-
10
5
os::util::ensure::built_binary_exists ' oc'
11
6
os::util::environment::use_sudo
12
7
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ os::log::system::start
32
32
os::start::configure_server
33
33
os::start::server
34
34
35
- # Allow setting $JUNIT_REPORT to toggle output behavior
36
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
37
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
38
- fi
39
-
40
35
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
41
36
42
37
oc login -u system:admin -n default
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ os::log::system::start
17
17
18
18
os::util::ensure::iptables_privileges_exist
19
19
20
- # Allow setting $JUNIT_REPORT to toggle output behavior
21
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
22
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
23
- fi
24
-
25
20
# Always keep containers' raw output for simplicity
26
21
junit_gssapi_output=" ${LOG_DIR} /raw_test_output_gssapi.log"
27
22
@@ -53,11 +48,6 @@ cp "${SERVER_CONFIG_DIR}/master/master-config.yaml" "${SERVER_CONFIG_DIR}/master
53
48
openshift ex config patch " ${SERVER_CONFIG_DIR} /master/master-config.tmp.yaml" --patch=" ${oauth_patch} " > " ${SERVER_CONFIG_DIR} /master/master-config.yaml"
54
49
os::start::server
55
50
56
- # Allow setting $JUNIT_REPORT to toggle output behavior
57
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
58
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
59
- fi
60
-
61
51
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
62
52
63
53
os::start::registry
Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ os::log::system::start
29
29
os::start::configure_server
30
30
os::start::server
31
31
32
- # Allow setting $JUNIT_REPORT to toggle output behavior
33
- if [[ -n " ${JUNIT_REPORT:- } " ]]; then
34
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
35
- fi
36
-
37
32
export KUBECONFIG=" ${ADMIN_KUBECONFIG} "
38
33
39
34
os::start::registry
Original file line number Diff line number Diff line change 368
368
369
369
# Allow setting $JUNIT_REPORT to toggle output behavior
370
370
if [[ -n " ${JUNIT_REPORT:- } " ]]; then
371
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
372
371
# the Ginkgo tests also generate jUnit but expect different envars
373
372
export TEST_REPORT_DIR=" ${ARTIFACT_DIR} /junit"
374
373
mkdir -p $TEST_REPORT_DIR
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ function os::test::extended::setup () {
48
48
49
49
# Allow setting $JUNIT_REPORT to toggle output behavior
50
50
if [[ -n " ${JUNIT_REPORT:- } " ]]; then
51
- export JUNIT_REPORT_OUTPUT=" ${LOG_DIR} /raw_test_output.log"
52
51
# the Ginkgo tests also generate jUnit but expect different envars
53
52
export TEST_REPORT_DIR=" ${ARTIFACT_DIR} /junit"
54
53
mkdir -p $TEST_REPORT_DIR
You can’t perform that action at this time.
0 commit comments