diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 83e24fa5d4..11a50d5f4a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -239,6 +239,9 @@ set_property(TEST nodeos_irreversible_mode_lr_test PROPERTY LABELS long_running_ add_test(NAME nodeos_read_terminate_at_block_lr_test COMMAND tests/nodeos_read_terminate_at_block_test.py -v ${UNSHARE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) set_property(TEST nodeos_read_terminate_at_block_lr_test PROPERTY LABELS long_running_tests) +# requires https://github.com/AntelopeIO/leap/issues/2057 because running in irreversible mode currently switches different than non-irreversible mode +#add_test(NAME nodeos_read_terminate_at_block_if_lr_test COMMAND tests/nodeos_read_terminate_at_block_test.py --activate-if -v ${UNSHARE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +#set_property(TEST nodeos_read_terminate_at_block_if_lr_test PROPERTY LABELS long_running_tests) add_test(NAME nodeos_chainbase_allocation_test COMMAND tests/nodeos_chainbase_allocation_test.py -v ${UNSHARE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) set_property(TEST nodeos_chainbase_allocation_test PROPERTY LABELS nonparallelizable_tests) diff --git a/tests/nodeos_read_terminate_at_block_test.py b/tests/nodeos_read_terminate_at_block_test.py index aace1a5645..6f34e19b4f 100755 --- a/tests/nodeos_read_terminate_at_block_test.py +++ b/tests/nodeos_read_terminate_at_block_test.py @@ -24,6 +24,7 @@ # Parse command line arguments args = TestHelper.parse_args({ "-v", + "--activate-if", "--dump-error-details", "--leave-running", "--keep-logs", @@ -31,6 +32,7 @@ }) Utils.Debug = args.v +activateIF=args.activate_if dumpErrorDetails = args.dump_error_details # Wrapper function to execute test @@ -195,6 +197,7 @@ def checkHeadOrSpeculative(head, lib): totalNodes=totalNodes, pnodes=1, topo="mesh", + activateIF=activateIF, specificExtraNodeosArgs=specificNodeosArgs, )