Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit a29e88a

Browse files
committed
factor out testing repository cloning
1 parent df9ef25 commit a29e88a

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

dev/release/verify-release-candidate.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
525537
test_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

670674
test_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

Comments
 (0)