@@ -257,7 +257,12 @@ while [ $# -gt 0 ]; do
257257 --show-ignored) SHOW_IGNORED=true; shift ;;
258258 --help|-h) show_help; exit 0 ;;
259259
260- * ) echo " Unknown option: ${1} " ; echo " " ; show_help; exit 1 ;;
260+ * )
261+ echo " Unknown option: ${1} "
262+ echo " "
263+ show_help
264+ exit 1
265+ ;;
261266 esac
262267done
263268
@@ -306,19 +311,19 @@ if [ "${LIST_IMAGES}" == "true" ]; then
306311 readarray -t all_relays_ids < <( get_entity_ids " relays" )
307312 print_list " Relays" all_relays_ids
308313
309- echo " "
314+ println
310315
311316 # Get and print routers
312317 readarray -t all_routers_ids < <( get_entity_ids " routers" )
313318 print_list " Routers" all_routers_ids
314319
315- echo " "
320+ println
316321
317322 # Get and print implementations
318323 readarray -t all_image_ids < <( get_entity_ids " implementations" )
319324 print_list " Implementations" all_image_ids
320325
321- echo " "
326+ println
322327 unindent
323328 exit 0
324329fi
@@ -359,7 +364,7 @@ if [ "${LIST_TESTS}" == "true" ]; then
359364 exit 1
360365 fi
361366 unindent
362- echo " "
367+ println
363368
364369 print_header " Test Selection..."
365370 indent
@@ -368,18 +373,18 @@ if [ "${LIST_TESTS}" == "true" ]; then
368373 readarray -t selected_tests < <( get_entity_ids " tests" " ${TEMP_DIR} /test-matrix.yaml" )
369374 print_list " Selected tests" selected_tests
370375
371- echo " "
376+ println
372377
373378 # Get and maybe print the ignored main tests
374379 readarray -t ignored_tests < <( get_entity_ids " ignoredTests" " ${TEMP_DIR} /test-matrix.yaml" )
375380 if [ " ${SHOW_IGNORED} " == " true" ]; then
376381 print_list " Ignored tests" ignored_tests
377- echo " "
382+ println
378383 fi
379384
380385 print_message " Total selected: ${# selected_tests[@]} tests"
381386 print_message " Total ignored: ${# ignored_tests[@]} tests"
382- echo " "
387+ println
383388
384389 unindent
385390 exit 0
@@ -397,7 +402,7 @@ if [ "${CHECK_DEPS}" == "true" ]; then
397402 print_header " Checking dependencies..."
398403 indent
399404 bash " ${SCRIPT_LIB_DIR} /check-dependencies.sh" docker yq || {
400- echo " "
405+ println
401406 print_error " Error: Missing required dependencies."
402407 print_message " Run '${0} ' --check-deps to see details."
403408 unindent
@@ -443,22 +448,22 @@ print_message "Create Snapshot: ${CREATE_SNAPSHOT}"
443448print_message " Debug: ${DEBUG} "
444449print_message " Force Matrix Rebuild: ${FORCE_MATRIX_REBUILD} "
445450print_message " Force Image Rebuild: ${FORCE_IMAGE_REBUILD} "
446- echo " "
451+ println
447452
448453# Set up the folder structure for the output
449454mkdir -p " ${TEST_PASS_DIR} " /{logs,results,docker-compose}
450455
451456# Generate inputs.yaml to capture the current environment and command line arguments
452457generate_inputs_yaml " ${TEST_PASS_DIR} /inputs.yaml" " $TEST_TYPE " " ${ORIGINAL_ARGS[@]} "
453458
454- echo " "
459+ println
455460unindent
456461
457462# Check dependencies for normal execution
458463print_header " Checking dependencies..."
459464indent
460465bash " ${SCRIPT_LIB_DIR} /check-dependencies.sh" docker yq || {
461- echo " "
466+ println
462467 print_error " Error: Missing required dependencies."
463468 print_message " Run '${0} ' --check-deps to see details."
464469 unindent
474479 exit 1
475480fi
476481unindent
477- echo " "
482+ println
478483
479484# Start timing (moved before server setup)
480485TEST_START_TIME=$( date +%s)
@@ -497,7 +502,7 @@ bash "${SCRIPT_DIR}/generate-tests.sh" || {
497502 exit 1
498503}
499504unindent
500- echo " "
505+ println
501506
502507# =============================================================================
503508# STEP 6: PRINT TEST SELECTION
@@ -514,21 +519,21 @@ indent
514519readarray -t selected_main_tests < <( get_entity_ids " tests" " ${TEST_PASS_DIR} /test-matrix.yaml" )
515520print_list " Selected main tests" selected_main_tests
516521
517- echo " "
522+ println
518523
519524# Get and maybe print the ignored main tests
520525readarray -t ignored_main_tests < <( get_entity_ids " ignoredTests" " ${TEST_PASS_DIR} /test-matrix.yaml" )
521526if [ " ${SHOW_IGNORED} " == " true" ]; then
522527 print_list " Ignored main tests" ignored_main_tests
523- echo " "
528+ println
524529fi
525530
526531TEST_COUNT=${# selected_main_tests[@]}
527532TOTAL_TESTS=${TEST_COUNT}
528533
529534print_message " Total selected: ${TOTAL_TESTS} tests"
530535print_message " Total ignored: ${# ignored_main_tests[@]} tests"
531- echo " "
536+ println
532537unindent
533538
534539# Get unique implementations from main tests
@@ -548,7 +553,7 @@ if [ "${AUTO_YES}" != true ]; then
548553 response=${response:- Y}
549554
550555 if [[ ! " ${response} " =~ ^[Yy]$ ]]; then
551- echo " "
556+ println
552557 print_error " Test execution cancelled."
553558 unindent
554559 exit 0
@@ -566,7 +571,7 @@ unindent
566571# =============================================================================
567572
568573# Build Docker images
569- echo " "
574+ println
570575print_header " Building Docker images..."
571576indent
572577
@@ -584,7 +589,7 @@ print_success "All images built successfully"
584589
585590rm -f " ${REQUIRED_IMAGES} "
586591unindent
587- echo " "
592+ println
588593
589594# =============================================================================
590595# STEP 8: RUN TESTS
@@ -602,7 +607,7 @@ start_redis_service "${TEST_TYPE}-network" "${TEST_TYPE}-redis" || {
602607 return 1
603608}
604609unindent
605- echo " "
610+ println
606611
607612# Run main transport interop tests
608613print_header " Running tests... (${WORKER_COUNT} workers)"
@@ -648,7 +653,7 @@ export -f run_test
648653seq 0 $(( TEST_COUNT - 1 )) | xargs -P " ${WORKER_COUNT} " -I {} bash -c ' run_test {}' || true
649654
650655unindent
651- echo " "
656+ println
652657
653658# Stop global services
654659print_header " Stopping global services..."
@@ -659,7 +664,7 @@ stop_redis_service "${TEST_TYPE}-network" "${TEST_TYPE}-redis" || {
659664 return 1
660665}
661666unindent
662- echo " "
667+ println
663668
664669TEST_END_TIME=$( date +%s)
665670TEST_DURATION=$(( TEST_END_TIME - TEST_START_TIME))
730735
731736
732737unindent
733- echo " "
738+ println
734739
735740# Display execution time
736741HOURS=$(( TEST_DURATION / 3600 ))
737742MINUTES=$(( (TEST_DURATION % 3600 ) / 60 ))
738743SECONDS=$(( TEST_DURATION % 60 ))
739744print_message " $( printf " Total time: %02d:%02d:%02d\n" " ${HOURS} " " ${MINUTES} " " ${SECONDS} " ) "
740- echo " "
745+ println
741746
742747# Display status message
743748if [ " ${FAILED} " -eq 0 ]; then
749754fi
750755
751756unindent
752- echo " "
757+ println
753758
754759# =============================================================================
755760# STEP 10: GENERATE RESULTS DASHBOARD
@@ -766,10 +771,10 @@ print_success "Generated ${TEST_PASS_DIR}/results.yaml"
766771bash " ${SCRIPT_DIR} /generate-dashboard.sh" || {
767772 print_error " Dashboard generation failed"
768773}
769- echo " "
774+ println
770775print_success " Dashboard generation complete"
771776unindent
772- echo " "
777+ println
773778
774779# =============================================================================
775780# STEP 11: CREATE SNAPSHOT
0 commit comments