@@ -522,6 +522,18 @@ test_integration() {
522522 $INTEGRATION_TEST_ARGS
523523}
524524
525+ clone_testing_repositories () {
526+ # Clone testing repositories if not cloned already
527+ if [ ! -d " arrow-testing" ]; then
528+ git clone https://github.com/apache/arrow-testing.git
529+ fi
530+ if [ ! -d " parquet-testing" ]; then
531+ git clone https://github.com/apache/parquet-testing.git
532+ fi
533+ export ARROW_TEST_DATA=$PWD /arrow-testing/data
534+ export PARQUET_TEST_DATA=$PWD /parquet-testing/data
535+ }
536+
525537test_source_distribution () {
526538 export ARROW_HOME=$TMPDIR /install
527539 export PARQUET_HOME=$TMPDIR /install
@@ -534,15 +546,7 @@ test_source_distribution() {
534546 NPROC=$( nproc)
535547 fi
536548
537- # Clone testing repositories if not cloned already
538- if [ ! -d " arrow-testing" ]; then
539- git clone https://github.com/apache/arrow-testing.git
540- fi
541- if [ ! -d " parquet-testing" ]; then
542- git clone https://github.com/apache/parquet-testing.git
543- fi
544- export ARROW_TEST_DATA=$PWD /arrow-testing/data
545- export PARQUET_TEST_DATA=$PWD /parquet-testing/data
549+ clone_testing_repositories
546550
547551 if [ ${TEST_JAVA} -gt 0 ]; then
548552 test_package_java
@@ -668,11 +672,8 @@ test_macos_wheels() {
668672}
669673
670674test_wheels () {
671- if [ ! -d " arrow-testing" ]; then
672- git clone https://github.com/apache/arrow-testing.git
673- fi
674- export ARROW_TEST_DATA=$PWD /arrow-testing/data
675-
675+ clone_testing_repositories
676+
676677 local download_dir=binaries
677678 mkdir -p ${download_dir}
678679
0 commit comments