Skip to content

Commit 9471bc8

Browse files
authored
Disable tests that involve configuration changes (#132)
1 parent 3603395 commit 9471bc8

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

CMakeLists.txt

+14-12
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,21 @@ if(BUILD_TESTS)
293293
--scenario ${CMAKE_SOURCE_DIR}/tests/simple_logging_scenario.json
294294
)
295295

296-
add_e2e_test(
297-
NAME election_tests
298-
PYTHON_SCRIPT ${CMAKE_SOURCE_DIR}/tests/election.py
299-
ADDITIONAL_ARGS
300-
--election-timeout 2000
301-
)
296+
if (NOT PBFT)
297+
add_e2e_test(
298+
NAME election_tests
299+
PYTHON_SCRIPT ${CMAKE_SOURCE_DIR}/tests/election.py
300+
ADDITIONAL_ARGS
301+
--election-timeout 2000
302+
)
302303

303-
add_e2e_test(
304-
NAME recovery_tests
305-
PYTHON_SCRIPT ${CMAKE_SOURCE_DIR}/tests/recovery.py
306-
ADDITIONAL_ARGS
307-
${RECOVERY_ARGS}
308-
)
304+
add_e2e_test(
305+
NAME recovery_tests
306+
PYTHON_SCRIPT ${CMAKE_SOURCE_DIR}/tests/recovery.py
307+
ADDITIONAL_ARGS
308+
${RECOVERY_ARGS}
309+
)
310+
endif()
309311

310312
if (BUILD_SMALLBANK)
311313
include(${CMAKE_CURRENT_SOURCE_DIR}/samples/apps/smallbank/smallbank.cmake)

0 commit comments

Comments
 (0)