Skip to content

Commit 1c007b8

Browse files
committed
Modernize CTest: Use --test-dir
1 parent d159006 commit 1c007b8

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/linux.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ jobs:
247247
-DopenPMD_USE_ADIOS2=ON \
248248
-DopenPMD_USE_INVASIVE_TESTS=ON
249249
cmake --build build --parallel 2
250-
cd build
251-
ctest --output-on-failure
250+
ctest --test-dir build --output-on-failure
252251
253252
gcc9_py38_pd_nompi_h5_ad2_libcpp:
254253
runs-on: ubuntu-22.04
@@ -270,8 +269,7 @@ jobs:
270269
-DopenPMD_USE_HDF5=ON \
271270
-DopenPMD_USE_INVASIVE_TESTS=ON
272271
cmake --build build --parallel 2
273-
cd build
274-
ctest --output-on-failure
272+
ctest --test-dir build --output-on-failure
275273
276274
musllinux_py10:
277275
runs-on: ubuntu-22.04
@@ -296,8 +294,7 @@ jobs:
296294
-DopenPMD_USE_INVASIVE_TESTS=ON \
297295
-DPython_EXECUTABLE=$(which python3.10)
298296
cmake --build build --parallel 2
299-
cd build
300-
ctest --output-on-failure
297+
ctest --test-dir build --output-on-failure
301298
302299
conda_ompi_all:
303300
runs-on: ubuntu-22.04
@@ -326,5 +323,4 @@ jobs:
326323
-DopenPMD_USE_ADIOS2=ON \
327324
-DopenPMD_USE_INVASIVE_TESTS=ON
328325
cmake --build build --parallel 2
329-
cd build
330-
ctest --output-on-failure
326+
ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)