Skip to content

Commit 7229f6b

Browse files
committed
change var name and dont run optional on github
1 parent d6c1411 commit 7229f6b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
env:
4444
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
45-
RunAllDataTableTests: yes
45+
RUN_ALL_DATATABLE_TESTS: yes
4646

4747
steps:
4848
- name: Set locale

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
RSPM: ${{ matrix.config.rspm }}
3939
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4040
_R_CHECK_RD_CHECKRD_MINLEVEL_: -Inf
41-
RunAllDataTableTests: yes
41+
RUN_ALL_DATATABLE_TESTS: yes
4242

4343
steps:
4444
- uses: actions/checkout@v4

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variables:
1313
TZ: "UTC" ## to avoid 'Failed to create bus connection' from timedatectl via Sys.timezone() on Docker with R 3.4.
1414
## Setting TZ for all GLCI jobs to isolate them from timezone. We could have a new GLCI job to test under
1515
## a non-UTC timezone, although, that's what we do routinely in dev.
16-
RunAllDataTableTests: "yes" ## run optional tests in CI
16+
RUN_ALL_DATATABLE_TESTS: "yes" ## run optional tests in CI
1717
R_REL_VERSION: "4.5" # only raise when RTOOLS for REL is available
1818
R_REL_WIN_BIN: "https://cloud.r-project.org/bin/windows/base/old/4.5.0/R-4.5.0-win.exe"
1919
R_DEV_VERSION: "4.6"

R/test.data.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ test.data.table = function(script="tests.Rraw", verbose=FALSE, pkg=".", silent=F
22
memtest=Sys.getenv("TEST_DATA_TABLE_MEMTEST", 0L), memtest.id=NULL, optional=FALSE) {
33
stopifnot(isTRUEorFALSE(verbose), isTRUEorFALSE(silent), isTRUEorFALSE(showProgress), isTRUEorFALSE(optional))
44

5-
# Skip optional tests unless RunAllDataTableTests is set
6-
if (optional && Sys.getenv("RunAllDataTableTests") != "yes") {
5+
# Skip optional tests unless RUN_ALL_DATATABLE_TESTS is set
6+
if (optional && Sys.getenv("RUN_ALL_DATATABLE_TESTS") != "yes") {
77
return(invisible(TRUE))
88
}
99

man/test.data.table.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test.data.table(script = "tests.Rraw", verbose = FALSE, pkg = ".",
2121
\item{testPattern}{ When present, a regular expression tested against the number of each test for inclusion. Useful for running only a small portion of a large test script. }
2222
\item{memtest}{ Measure and report memory usage of tests (1:gc before ps, 2:gc after ps) rather than time taken (0) by default. Intended for and tested on Linux. See PR #5515 for more details. }
2323
\item{memtest.id}{ An id for which to print memory usage for every sub id. May be a range of ids. }
24-
\item{optional}{ If \code{TRUE}, the test will only run when the environment variable \code{RunAllDataTableTests} is set to \code{"yes"}. This allows certain optional tests to be skipped on CRAN but run in development or CI environments. }
24+
\item{optional}{ If \code{TRUE}, the test will only run when the environment variable \code{RUN_ALL_DATATABLE_TESTS} is set to \code{"yes"}. This allows certain optional tests to be skipped on CRAN but run in development or CI environments. }
2525
}
2626
\details{
2727
Runs a series of tests. These can be used to see features and examples of usage, too. Running test.data.table will tell you the full location of the test file(s) to open.

0 commit comments

Comments
 (0)