|
10 | 10 | # Usage: ./run-random-tests.sh [options] |
11 | 11 | # Options: |
12 | 12 | # -q, --quiet Suppress debug output |
13 | | -# -f, --show-failures Print failed test output in summary (auto-enabled in GitHub Actions) |
14 | 13 | # -c, --component COMPONENT Test single COMPONENT (overrides config file) |
15 | 14 | # -n, --max-jobs MAX_JOBS Limit concurrent test jobs (auto-detect if omitted) |
16 | 15 | # -r, --repeat REPEAT Repeat full component run REPEAT times |
@@ -53,7 +52,6 @@ component="" |
53 | 52 | max_jobs="" |
54 | 53 | repeat_count=1 |
55 | 54 | timeout_seconds=300 |
56 | | -show_failures="" |
57 | 55 | first_result=true |
58 | 56 | declare -a bg_pids=() |
59 | 57 |
|
@@ -279,10 +277,6 @@ parse_arguments() { |
279 | 277 | quiet="--quiet" |
280 | 278 | shift |
281 | 279 | ;; |
282 | | - -f|--show-failures) |
283 | | - show_failures="--show-failures" |
284 | | - shift |
285 | | - ;; |
286 | 280 | -c|--component) |
287 | 281 | if [[ $# -lt 2 ]]; then |
288 | 282 | print_error "Missing value for --component" |
@@ -350,7 +344,6 @@ show_help() { |
350 | 344 | echo "" |
351 | 345 | echo -e "${YELLOW}Options:${RESET}" |
352 | 346 | echo -e " ${GREEN}-q, --quiet${RESET} Suppress debug output" |
353 | | - echo -e " ${GREEN}-f, --show-failures${RESET} Print failed test output in summary (auto-enabled in GitHub Actions)" |
354 | 347 | echo -e " ${GREEN}-c, --component COMPONENT${RESET} Test single ${GREEN}COMPONENT${RESET} (overrides config file)" |
355 | 348 | echo -e " ${GREEN}-n, --max-jobs MAX_JOBS${RESET} Limit concurrent test jobs (auto-detect if omitted)" |
356 | 349 | echo -e " ${GREEN}-r, --repeat REPEAT${RESET} Repeat full component run ${GREEN}REPEAT${RESET} times" |
@@ -765,18 +758,6 @@ print_summary() { |
765 | 758 | fi |
766 | 759 |
|
767 | 760 | echo -e " ${RED}✗${RESET} ${BOLD}$failed_component${RESET} ($result_file)" |
768 | | - |
769 | | - if [[ -n "${GITHUB_ACTIONS:-}" || "$show_failures" == "--show-failures" ]]; then |
770 | | - if [[ -f "$result_file" ]]; then |
771 | | - if [[ -n "${GITHUB_ACTIONS:-}" ]]; then |
772 | | - echo "::group::Output: $failed_component" |
773 | | - fi |
774 | | - cat "$result_file" |
775 | | - if [[ -n "${GITHUB_ACTIONS:-}" ]]; then |
776 | | - echo "::endgroup::" |
777 | | - fi |
778 | | - fi |
779 | | - fi |
780 | 761 | done < <(printf '%s\n' "${failed_components[@]}" | sort) |
781 | 762 | fi |
782 | 763 |
|
|
0 commit comments