Skip to content

Commit 55d4562

Browse files
LukasBreitwieserMartin Foll
authored andcommitted
Ensure that hadd python tests are run only if pytest is available
Change CMake function from ROOTTEST_ADD_TEST to ROOT_ADD_PYUNITTEST
1 parent 1c34850 commit 55d4562

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

roottest/root/io/hadd/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ if(NOT ROOT_pyroot_FOUND)
22
return()
33
endif()
44

5-
ROOTTEST_ADD_TEST(input_validation
6-
MACRO input_validation.py)
5+
ROOT_ADD_PYUNITTEST(input_validation input_validation.py GENERIC PYTHON_DEPS pytest)
76

87
################################################################
98
# compression tests #
109
################################################################
11-
ROOTTEST_ADD_TEST(compression_settings
12-
MACRO test_compression_settings.py)
10+
ROOT_ADD_PYUNITTEST(compression_settings test_compression_settings.py GENERIC PYTHON_DEPS pytest)
1311

1412
# merge 2 RNTuples passing an explicit compression
1513
ROOTTEST_ADD_TEST(test_MergeChangeComp_explicit

0 commit comments

Comments
 (0)