Skip to content

Commit 44dc655

Browse files
committed
Just copy the helper
1 parent 34cfd4f commit 44dc655

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎dev/tasks/r/github.linux.arrow.version.back.compat.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ jobs:
115115
- name: Setup our testing directory, copy only the tests to it.
116116
run: |
117117
mkdir -p extra-tests/files
118-
# Move test helpers for skip_if_arrow_version_less_than()
119-
cp arrow/r/tests/testthat/helper-skip.R extra-tests/
120118
cp arrow/r/extra-tests/*.R extra-tests/
121119
- name: Download artifacts
122120
uses: actions/download-artifact@v4

‎r/extra-tests/test-read-files.R‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
library(arrow)
1919
library(testthat)
2020

21+
# These are copied from tests/testthat/helper-skip.R so we don't need to load all of
22+
# the helpers.
23+
skip_if_arrow_version_less_than <- function(version, msg) {
24+
if (arrow_cpp_version() < numeric_version(version)) {
25+
skip(msg)
26+
}
27+
}
28+
29+
arrow_cpp_version <- function() {
30+
numeric_version(gsub("-SNAPSHOT", "", arrow::arrow_info()$build_info["cpp_version"]))
31+
}
32+
2133
pq_file <- "files/ex_data.parquet"
2234

2335
test_that("Can read the file (parquet)", {

0 commit comments

Comments
 (0)