Skip to content

Commit e165d54

Browse files
nealrichardsonkszucs
authored andcommitted
Make sure macOS wheel verification has test data
1 parent a605417 commit e165d54

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cpp/src/arrow/flight/test_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Status TestClientBasicAuthHandler::GetToken(std::string* token) {
454454
Status GetTestResourceRoot(std::string* out) {
455455
const char* c_root = std::getenv("ARROW_TEST_DATA");
456456
if (!c_root) {
457-
return Status::IOError("Test resources not found, set ARROW_TEST_DATA");
457+
return Status::IOError("Test resources not found, set ARROW_TEST_DATA to <repo root>/testing/data");
458458
}
459459
*out = std::string(c_root);
460460
return Status::OK();

dev/release/verify-release-candidate.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ test_linux_wheels() {
637637

638638
test_macos_wheels() {
639639
local py_arches="2.7m 3.5m 3.6m 3.7m 3.8"
640+
if [ ! -d "arrow-testing" ]; then
641+
git clone https://github.com/apache/arrow-testing.git
642+
fi
643+
export ARROW_TEST_DATA=$PWD/arrow-testing/data
640644

641645
for py_arch in ${py_arches}; do
642646
local env=_verify_wheel-${py_arch}

python/pyarrow/tests/test_flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def resource_root():
6060
"""Get the path to the test resources directory."""
6161
if not os.environ.get("ARROW_TEST_DATA"):
6262
raise RuntimeError("Test resources not found; set "
63-
"ARROW_TEST_DATA to <repo root>/testing")
63+
"ARROW_TEST_DATA to <repo root>/testing/data")
6464
return pathlib.Path(os.environ["ARROW_TEST_DATA"]) / "flight"
6565

6666

0 commit comments

Comments
 (0)