@@ -242,7 +242,7 @@ test_source_distribution() {
242
242
}
243
243
244
244
test_apt () {
245
- pushd " ${TARGET_SOURCE_DIR } "
245
+ pushd " ${ARROW_TMPDIR } "
246
246
247
247
show_header " Testing APT packages"
248
248
@@ -268,16 +268,16 @@ test_apt() {
268
268
done
269
269
else
270
270
curl --get \
271
- --data branch=${VERSION} -${RC_NUMBER} \
272
- https://api.github.com/repos/${SOURCE_REPOSITORY} /actions/workflows/package .yaml/runs > \
273
- package_run .json
274
- if [ $( jq -r ' .total_count' package_run .json) -eq 0 ]; then
271
+ --data branch=${VERSION} -rc ${RC_NUMBER} \
272
+ https://api.github.com/repos/${SOURCE_REPOSITORY} /actions/workflows/verify-rc .yaml/runs > \
273
+ verify_rc_run .json
274
+ if [ $( jq -r ' .total_count' verify_rc_run .json) -eq 0 ]; then
275
275
echo " APT packages test on GitHub Actions isn't ran yet."
276
276
return 1
277
277
fi
278
278
echo " APT packages test was ran on GitHub Actions:"
279
- echo " $( jq -r ' .workflow_runs[0].html_url' package_run .json) "
280
- conclusion=" $( jq -r ' .workflow_runs[0].conclusion' package_run .json) "
279
+ echo " $( jq -r ' .workflow_runs[0].html_url' verify_rc_run .json) "
280
+ conclusion=" $( jq -r ' .workflow_runs[0].conclusion' verify_rc_run .json) "
281
281
if [ " ${conclusion} " != " success" ]; then
282
282
echo " It was not succeeded: ${conclusion} "
283
283
return 1
@@ -301,7 +301,7 @@ test_binary_distribution() {
301
301
: ${TEST_BINARIES:= ${TEST_DEFAULT} }
302
302
303
303
if [ " ${GITHUB_ACTIONS:- } " = " true" ] || \
304
- ruby -r arrow-flight-sql -e ' true' > dev/null 2>&1 ; then
304
+ ruby -r arrow-flight-sql -e ' true' > / dev/null 2>&1 ; then
305
305
: ${TEST_SOURCE_MANUAL:= 0}
306
306
else
307
307
: ${TEST_SOURCE_MANUAL:= 1}
310
310
TEST_SUCCESS=no
311
311
312
312
setup_tempdir
313
- ensure_source_directory
314
313
if [ ${TEST_SOURCE} -gt 0 ]; then
314
+ ensure_source_directory
315
315
test_source_distribution
316
316
fi
317
- if [ ${TEST_BINARY } -gt 0 ]; then
317
+ if [ ${TEST_BINARIES } -gt 0 ]; then
318
318
test_binary_distribution
319
319
fi
320
320
0 commit comments