File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1134,7 +1134,6 @@ if(BUILD_TESTS)
11341134 CONFIGURATIONS snp
11351135 )
11361136
1137- list (APPEND LTS_TEST_ARGS --ccf-version ${CCF_VERSION} )
11381137 if (LONG_TESTS)
11391138 list (APPEND LTS_TEST_ARGS --check-ledger-compatibility)
11401139 endif ()
@@ -1165,11 +1164,10 @@ if(BUILD_TESTS)
11651164 set (ROTATION_TEST_ARGS --rotation-retirements 10)
11661165 endif ()
11671166
1168- set (RECONFIG_TEST_ARGS --ccf-version ${CCF_VERSION} )
11691167 add_e2e_test(
11701168 NAME nodes_test
11711169 PYTHON_SCRIPT ${CMAKE_SOURCE_DIR} /tests/nodes.py
1172- ADDITIONAL_ARGS ${RECONFIG_TEST_ARGS} ${ ROTATION_TEST_ARGS}
1170+ ADDITIONAL_ARGS ${ROTATION_TEST_ARGS}
11731171 )
11741172
11751173 add_piccolo_test(
Original file line number Diff line number Diff line change @@ -401,6 +401,15 @@ def cli_args(
401401 with open (pre_args .defaults_file , "r" ) as f :
402402 config = json .load (f )
403403 LOG .info (f"Loaded default args from { pre_args .defaults_file } " )
404+ # If ccf_version is not already in the config, try to read it from
405+ # VERSION_LONG in the same directory as the defaults file.
406+ if "ccf_version" not in config :
407+ version_long_path = os .path .join (
408+ os .path .dirname (pre_args .defaults_file ), "VERSION_LONG"
409+ )
410+ if os .path .isfile (version_long_path ):
411+ with open (version_long_path , "r" ) as vf :
412+ config ["ccf_version" ] = vf .read ().strip ()
404413 parser .set_defaults (** config )
405414
406415 if accept_unknown :
You can’t perform that action at this time.
0 commit comments