@@ -242,7 +242,7 @@ test_source_distribution() {
242242}
243243
244244test_apt () {
245- pushd " ${TARGET_SOURCE_DIR } "
245+ pushd " ${ARROW_TMPDIR } "
246246
247247 show_header " Testing APT packages"
248248
@@ -268,16 +268,16 @@ test_apt() {
268268 done
269269 else
270270 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
275275 echo " APT packages test on GitHub Actions isn't ran yet."
276276 return 1
277277 fi
278278 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) "
281281 if [ " ${conclusion} " != " success" ]; then
282282 echo " It was not succeeded: ${conclusion} "
283283 return 1
@@ -301,7 +301,7 @@ test_binary_distribution() {
301301: ${TEST_BINARIES:= ${TEST_DEFAULT} }
302302
303303if [ " ${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
305305 : ${TEST_SOURCE_MANUAL:= 0}
306306else
307307 : ${TEST_SOURCE_MANUAL:= 1}
310310TEST_SUCCESS=no
311311
312312setup_tempdir
313- ensure_source_directory
314313if [ ${TEST_SOURCE} -gt 0 ]; then
314+ ensure_source_directory
315315 test_source_distribution
316316fi
317- if [ ${TEST_BINARY } -gt 0 ]; then
317+ if [ ${TEST_BINARIES } -gt 0 ]; then
318318 test_binary_distribution
319319fi
320320
0 commit comments