Skip to content

Commit

Permalink
got better jobname parcer working
Browse files Browse the repository at this point in the history
  • Loading branch information
Terry McGuinness committed Dec 9, 2024
1 parent d18ad01 commit ef0e066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ci/scripts/ctests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ function(GenerateJobWorkflows CASE)
string(REGEX MATCHALL "${CASE}_[^;]+" PSLOT_LIST "${PSLOT_LIST}")
message(STATUS "Filtered PSLOT list: ${PSLOT_LIST}\n\n")

message(STATUS "Executing: ${HOMEGFS}/ci/scripts/utils/get_job_names.py --xmlfile ${RUNTESTS}/EXPDIR/${PSLOT_LIST}/${PSLOT_LIST}.xml")
message(STATUS "Executing: ${HOMEGFS}/ci/scripts/utils/get_job_names.py --xml ${RUNTESTS}/EXPDIR/${PSLOT_LIST}/${PSLOT_LIST}.xml")
execute_process(
COMMAND ${HOMEGFS}/ci/scripts/utils/get_job_names.py --xmlfile ${RUNTESTS}/EXPDIR/${PSLOT_LIST}/${PSLOT_LIST}.xml
COMMAND ${HOMEGFS}/ci/scripts/utils/get_job_names.py --xml ${RUNTESTS}/EXPDIR/${PSLOT_LIST}/${PSLOT_LIST}.xml
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
OUTPUT_FILE ${CMAKE_BINARY_DIR}/${CASE}_jobs.txt
)
Expand All @@ -51,9 +51,9 @@ function(GenerateJobWorkflows CASE)

foreach(JOB IN LISTS JOB_NAMES)
string(REGEX REPLACE "^${CASE}_" "" JOB_MODIFIED ${JOB})
message(STATUS "Executing: bash ${HOMEGFS}/workflow/generate_workflows.sh -V -H ${HOMEGFS} -y ${CASE}.yaml -t ${JOB_MODIFIED} ${RUNTESTS}")
message(STATUS "Executing: bash ${HOMEGFS}/workflow/generate_workflows.sh -V -H ${HOMEGFS} -y ${CASE}.yaml -t ${JOB_MODIFIED} ${RUNTESTS}")
execute_process(
COMMAND bash ${HOMEGFS}/workflow/generate_workflows.sh -V -H ${HOMEGFS} -y ${CASE}.yaml -t ${JOB_MODIFIED} ${RUNTESTS}
COMMAND bash ${HOMEGFS}/workflow/generate_workflows.sh -V -H ${HOMEGFS} -y ${CASE}.yaml -t ${JOB_MODIFIED}_${GIT_HASH} ${RUNTESTS}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
endforeach()
Expand Down
2 changes: 1 addition & 1 deletion ci/scripts/utils/get_job_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_names_from_tags(xml_file):
# Example usage
if __name__ == "__main__":
args = input_args()
xml_file = args.xmlfile
xml_file = args.xml
job_names = get_names_from_tags(xml_file)
for job_name in job_names:
if "#" not in job_name:
Expand Down

0 comments on commit ef0e066

Please sign in to comment.