Skip to content

Commit 8385bd2

Browse files
committed
Fix hack/test-integration.sh on OSX
1 parent 271fb1c commit 8385bd2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hack/lib/util/misc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function os::util::curl_etcd() {
181181
-out "${etcd_client_cert_p12}" \
182182
-password "pass:${etcd_client_cert_p12_password}"
183183
fi
184-
b
184+
185185
curl --fail --silent --cacert "${ca_bundle}" \
186186
--cert "${etcd_client_cert_p12}:${etcd_client_cert_p12_password}" "${full_url}"
187187
else

hack/test-integration.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ tests=( $(go run "${OS_ROOT}/hack/listtests.go" -prefix="${OS_GO_PACKAGE}/${pack
112112
ret=0
113113
test_result="ok"
114114
pushd "${OS_ROOT}/${package}" &>/dev/null
115-
test_start_time=$(date +%s%3N)
115+
test_start_time=$(date +%s)
116116
for test in "${tests[@]}"; do
117117
for((i=0;i<${loop};i+=1)); do
118118
if ! (exectest "${test}" ${@:2}); then
@@ -121,10 +121,10 @@ for test in "${tests[@]}"; do
121121
fi
122122
done
123123
done
124-
test_end_time=$(date +%s%3N)
124+
test_end_time=$(date +%s)
125125
test_duration=$((test_end_time - test_start_time))
126126

127-
echo "${test_result} github.com/openshift/origin/test/integration $((test_duration / 1000)).$((test_duration % 1000))s" >> "${JUNIT_REPORT_OUTPUT:-/dev/null}"
127+
echo "${test_result} github.com/openshift/origin/test/integration $((test_duration)).000s" >> "${JUNIT_REPORT_OUTPUT:-/dev/null}"
128128

129129
popd &>/dev/null
130130

0 commit comments

Comments
 (0)