reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Output in parallel mode
six2dezc3ce0c96e5e2
diff --git a/lib/common.sh b/lib/common.shindex 5e0cc43..d177447 100644--- a/lib/common.sh+++ b/lib/common.sh@@ -87,10 +87,13 @@ count_lines_stdin() {# Usage: skip_notification reason# reason: "disabled" | "processed" | custom messageskip_notification() {+ # In quiet mode, suppress skip messages entirely+ [[ "${OUTPUT_VERBOSITY:-1}" -eq 0 ]] && return 0+local func_name="${FUNCNAME[1]:-unknown}"local reason="${1:-mode or configuration settings}"local checkpoint_hint=""-+case "$reason" indisabled)reason="mode or configuration settings"@@ -100,7 +103,7 @@ skip_notification() {checkpoint_hint="\n To force re-run, delete: ${called_fn_dir:-.}/.${func_name}";;esac-+printf "\n%b[%s] %s skipped: %s%b${checkpoint_hint}\n" \"${yellow:-}" \"$(date +'%Y-%m-%d %H:%M:%S')" \diff --git a/lib/parallel.sh b/lib/parallel.shindex a9067cd..e962973 100644--- a/lib/parallel.sh+++ b/lib/parallel.sh@@ -29,6 +29,78 @@ _parallel_effective_max_jobs() {echo "$effective"}+###############################################################################+# Output Helpers+###############################################################################++# Emit output for a single parallel job based on PARALLEL_LOG_MODE+# Usage: _parallel_emit_job_output func_name log_file rc start_ts end_ts+_parallel_emit_job_output() {+ local func_name="$1"+ local log_file="$2"+ local rc="$3"+ local start_ts="$4"+ local end_ts="$5"+ local mode="${PARALLEL_LOG_MODE:-summary}"+ local tail_lines="${PARALLEL_TAIL_LINES:-20}"+ local duration=$((end_ts - start_ts))++ # In quiet mode (OUTPUT_VERBOSITY==0), only show failures+ if [[ "${OUTPUT_VERBOSITY:-1}" -eq 0 ]] && [[ "$rc" -eq 0 ]]; then+ return 0+ fi++ case "$mode" in+ summary)+ if [[ "$rc" -eq 0 ]]; then+ printf " %b[OK]%b %-35s %4ds%b\n" "${bgreen:-}" "${reset:-}" "$func_name" "$duration" "${reset:-}"+ else+ printf " %b[FAIL]%b %-35s %4ds%b\n" "${bred:-}" "${reset:-}" "$func_name" "$duration" "${reset:-}"+ if [[ -s "$log_file" ]]; then+ printf " ^ last 5 lines:\n"+ tail -n 5 "$log_file" | while IFS= read -r line; do+ printf " %s\n" "$line"+ done+ fi+ fi+ ;;+ tail)+ local show_lines="$tail_lines"+ [[ "$rc" -ne 0 ]] && show_lines=$((tail_lines * 2))+ if [[ "$rc" -eq 0 ]]; then+ printf " %b[OK]%b %-35s %4ds%b\n" "${bgreen:-}" "${reset:-}" "$func_name" "$duration" "${reset:-}"+ else+ printf " %b[FAIL]%b %-35s %4ds%b\n" "${bred:-}" "${reset:-}" "$func_name" "$duration" "${reset:-}"+ fi+ if [[ -s "$log_file" ]]; then+ tail -n "$show_lines" "$log_file"+ fi+ ;;+ full)+ printf "\n%b[%s] Output (%s) [rc=%d, %ds]%b\n" "${bblue:-}" "$(date +'%Y-%m-%d %H:%M:%S')" "$func_name" "$rc" "$duration" "${reset:-}"+ if [[ -s "$log_file" ]]; then+ cat "$log_file"+ fi+ ;;+ esac+}++# Print a summary line for a completed batch+# Usage: _parallel_batch_summary total_jobs failed_count batch_start_ts+_parallel_batch_summary() {+ local total="$1"+ local failed="$2"+ local batch_start="$3"+ local batch_end+ batch_end=$(date +%s)+ local elapsed=$((batch_end - batch_start))++ # Skip in quiet mode+ [[ "${OUTPUT_VERBOSITY:-1}" -eq 0 ]] && return 0++ printf " --- batch: %d jobs, %d failed, %ds elapsed ---\n" "$total" "$failed" "$elapsed"+}+################################################################################ Core Parallel Execution###############################################################################@@ -40,24 +112,24 @@ parallel_run() {local max_jobsmax_jobs=$(_parallel_effective_max_jobs "${1:-$PARALLEL_MAX_JOBS}")shift-+local -a pids=()local cmdlocal running=0-+for cmd in "$@"; do# Start command in background (use bash -c to avoid eval injection)bash -c "$cmd" &pids+=($!)((running++))-+# If we've reached max jobs, wait for one to finishif ((running >= max_jobs)); thenwait -n 2>/dev/null || true((running--))fidone-+# Wait for all remaining jobswait "${pids[@]}" 2>/dev/null}@@ -81,8 +153,11 @@ parallel_funcs() {local -a batch_pids=()local -a batch_funcs=()local -a batch_logs=()+ local -a batch_starts=()local funclocal failed=0+ local batch_start_ts+ batch_start_ts=$(date +%s)for func in "$@"; do# Check if function exists@@ -92,6 +167,9 @@ parallel_funcs() {filocal log_file="${parallel_log_root}/${func}.$$.$RANDOM.log"+ local job_start_ts+ job_start_ts=$(date +%s)+# Run function in background subshell("$func"@@ -99,51 +177,60 @@ parallel_funcs() {batch_pids+=("$!")batch_funcs+=("$func")batch_logs+=("$log_file")+ batch_starts+=("$job_start_ts")- # Log if verbose- [[ ${VERBOSE:-false} == true ]] && \+ # Log if verbose (OUTPUT_VERBOSITY >= 2)+ [[ "${OUTPUT_VERBOSITY:-1}" -ge 2 ]] && \printf "%b[*] Started %s (PID: %d)%b\n" "${cyan:-}" "$func" "${batch_pids[${#batch_pids[@]}-1]}" "${reset:-}"# If we've reached max jobs, flush the current batch.if ((${#batch_pids[@]} >= max_jobs)); then- local idx rc+ local idx rc batch_failed=0for idx in "${!batch_pids[@]}"; doif wait "${batch_pids[$idx]}" 2>/dev/null; thenrc=0elserc=$?fi- if [[ -s "${batch_logs[$idx]}" ]]; then- printf "\n%b[%s] Output (%s)%b\n" "${bblue:-}" "$(date +'%Y-%m-%d %H:%M:%S')" "${batch_funcs[$idx]}" "${reset:-}"- cat "${batch_logs[$idx]}"+ local job_end_ts+ job_end_ts=$(date +%s)+ _parallel_emit_job_output "${batch_funcs[$idx]}" "${batch_logs[$idx]}" "$rc" "${batch_starts[$idx]}" "$job_end_ts"+ [[ "${OUTPUT_VERBOSITY:-1}" -ge 2 ]] && printf "%b[*] Finished %s (PID: %s, rc=%s)%b\n" "${cyan:-}" "${batch_funcs[$idx]}" "${batch_pids[$idx]}" "$rc" "${reset:-}"+ if [[ $rc -ne 0 ]]; then+ ((failed++))+ ((batch_failed++))fi- [[ ${VERBOSE:-false} == true ]] && printf "%b[*] Finished %s (PID: %s, rc=%s)%b\n" "${cyan:-}" "${batch_funcs[$idx]}" "${batch_pids[$idx]}" "$rc" "${reset:-}"- [[ $rc -ne 0 ]] && ((failed++))rm -f "${batch_logs[$idx]}" 2>/dev/null || truedone+ _parallel_batch_summary "${#batch_pids[@]}" "$batch_failed" "$batch_start_ts"batch_pids=()batch_funcs=()batch_logs=()+ batch_starts=()+ batch_start_ts=$(date +%s)fidone# Wait for all remaining jobs and collect exit codesif ((${#batch_pids[@]} > 0)); then- local idx rc+ local idx rc batch_failed=0for idx in "${!batch_pids[@]}"; doif wait "${batch_pids[$idx]}" 2>/dev/null; thenrc=0elserc=$?fi- if [[ -s "${batch_logs[$idx]}" ]]; then- printf "\n%b[%s] Output (%s)%b\n" "${bblue:-}" "$(date +'%Y-%m-%d %H:%M:%S')" "${batch_funcs[$idx]}" "${reset:-}"- cat "${batch_logs[$idx]}"+ local job_end_ts+ job_end_ts=$(date +%s)+ _parallel_emit_job_output "${batch_funcs[$idx]}" "${batch_logs[$idx]}" "$rc" "${batch_starts[$idx]}" "$job_end_ts"+ [[ "${OUTPUT_VERBOSITY:-1}" -ge 2 ]] && printf "%b[*] Finished %s (PID: %s, rc=%s)%b\n" "${cyan:-}" "${batch_funcs[$idx]}" "${batch_pids[$idx]}" "$rc" "${reset:-}"+ if [[ $rc -ne 0 ]]; then+ ((failed++))+ ((batch_failed++))fi- [[ ${VERBOSE:-false} == true ]] && printf "%b[*] Finished %s (PID: %s, rc=%s)%b\n" "${cyan:-}" "${batch_funcs[$idx]}" "${batch_pids[$idx]}" "$rc" "${reset:-}"- [[ $rc -ne 0 ]] && ((failed++))rm -f "${batch_logs[$idx]}" 2>/dev/null || truedone+ _parallel_batch_summary "${#batch_pids[@]}" "$batch_failed" "$batch_start_ts"firmdir "$parallel_log_root" 2>/dev/null || truediff --git a/modules/core.sh b/modules/core.shindex 2664a42..5f1c2bc 100644--- a/modules/core.sh+++ b/modules/core.sh@@ -557,10 +557,12 @@ function progress_step() {fifi- printf "%b[%s] Progress: [%d/%d] %d%% | ETA: %s | %s%b\n" \- "$bblue" "$(date +'%H:%M:%S')" \- "$_PROGRESS_CURRENT_STEP" "$_PROGRESS_TOTAL_STEPS" \- "$pct" "$eta_display" "$step_name" "$reset"+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ printf "%b[%s] Progress: [%d/%d] %d%% | ETA: %s | %s%b\n" \+ "$bblue" "$(date +'%H:%M:%S')" \+ "$_PROGRESS_CURRENT_STEP" "$_PROGRESS_TOTAL_STEPS" \+ "$pct" "$eta_display" "$step_name" "$reset"+ fi}###############################################################################################################@@ -987,6 +989,7 @@ function notification() {elseNOTIFY=""fi+ # Always set current_date so start_func/end_func have itif [[ -z $3 ]]; thencurrent_date=$(date +'%Y-%m-%d %H:%M:%S')else@@ -1008,6 +1011,16 @@ function notification() {;;esac+ # In quiet mode (OUTPUT_VERBOSITY==0), only print errors to terminal+ if [[ "${OUTPUT_VERBOSITY:-1}" -eq 0 ]] && [[ "$2" != "error" ]]; then+ # Still send to notify if enabled, just skip terminal print+ if [[ -n $NOTIFY ]]; then+ clean_text=$(printf "%b" "${text} - ${domain}" | sed 's/\x1B\[[0-9;]*[JKmsu]//g')+ printf "%s" "${clean_text}" | $NOTIFY >/dev/null 2>&1+ fi+ return 0+ fi+# Print to terminalprintf "${text}\n"@@ -1071,7 +1084,9 @@ function sendToNotify {}function start_func() {- printf "${bgreen}#######################################################################"+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ printf "${bgreen}#######################################################################"+ finotification "${2}" infoecho "[$current_date] Start function: ${1} " >>"${LOGFILE}"start=$(date +%s)@@ -1085,8 +1100,10 @@ function end_func() {record_func_timing "${2}" "$((end - start))"notification "${2} Finished in ${runtime}" infoecho "[$current_date] End function: ${2} " >>"${LOGFILE}"- printf "${bblue}[$current_date] ${1} ${reset}\n"- printf "${bgreen}#######################################################################${reset}\n"+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ printf "${bblue}[$current_date] ${1} ${reset}\n"+ printf "${bgreen}#######################################################################${reset}\n"+ filog_json "SUCCESS" "${2}" "Function completed" "runtime=${runtime}" "duration_sec=$((end - start))"}@@ -1101,7 +1118,9 @@ function end_subfunc() {touch "$called_fn_dir/.${2}"end_sub=$(date +%s)getElapsedTime "$start_sub" "$end_sub"- notification " ${1} in ${runtime}" good+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ notification " ${1} in ${runtime}" good+ fiecho "[$current_date] End subfunction: ${1} " >>"${LOGFILE}"log_json "SUCCESS" "${2}" "Subfunction completed" "runtime=${runtime}" "duration_sec=$((end_sub - start_sub))"}diff --git a/modules/subdomains.sh b/modules/subdomains.shindex 9bf15bd..669c0ae 100644--- a/modules/subdomains.sh+++ b/modules/subdomains.sh@@ -381,17 +381,51 @@ _subdomains_finalize() {notification "- ${NUMOFLINES_subs} new subs alive" "good"if [[ -s "subdomains/subdomains.txt" ]]; thensort -o "subdomains/subdomains.txt" "subdomains/subdomains.txt"- while IFS= read -r sub; do- printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$sub" "$reset"- done < "subdomains/subdomains.txt"+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 2 ]]; then+ # Verbose: list all+ while IFS= read -r sub; do+ printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$sub" "$reset"+ done < "subdomains/subdomains.txt"+ elif [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ # Normal: list up to 20, then truncate+ local _sub_count _shown=0+ _sub_count=$(wc -l < "subdomains/subdomains.txt" | tr -d ' ')+ while IFS= read -r sub; do+ ((_shown++))+ if [[ $_shown -le 20 ]]; then+ printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$sub" "$reset"+ else+ printf "%b[%s] ... and %d more%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$((_sub_count - 20))" "$reset"+ break+ fi+ done < "subdomains/subdomains.txt"+ fi+ # Quiet (0): no listing at allfinotification "- ${NUMOFLINES_probed} new web probed" "good"if [[ -s "webs/webs.txt" ]]; thensort -o "webs/webs.txt" "webs/webs.txt"- while IFS= read -r web; do- printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$web" "$reset"- done < "webs/webs.txt"+ if [[ "${OUTPUT_VERBOSITY:-1}" -ge 2 ]]; then+ # Verbose: list all+ while IFS= read -r web; do+ printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$web" "$reset"+ done < "webs/webs.txt"+ elif [[ "${OUTPUT_VERBOSITY:-1}" -ge 1 ]]; then+ # Normal: list up to 20, then truncate+ local _web_count _wshown=0+ _web_count=$(wc -l < "webs/webs.txt" | tr -d ' ')+ while IFS= read -r web; do+ ((_wshown++))+ if [[ $_wshown -le 20 ]]; then+ printf "%b[%s] %s%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$web" "$reset"+ else+ printf "%b[%s] ... and %d more%b\n" "$yellow" "$(date +'%Y-%m-%d %H:%M:%S')" "$((_web_count - 20))" "$reset"+ break+ fi+ done < "webs/webs.txt"+ fi+ # Quiet (0): no listing at allfinotification "Subdomain Enumeration Finished" "good"diff --git a/reconftw.cfg b/reconftw.cfgindex cf0a291..a9fccf5 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -214,6 +214,11 @@ FUZZPARAMS=true # Fuzz parameters valuesPARALLEL_MODE=true # Run independent functions in parallel (faster, uses more resources). Disable with --no-parallel or set false.PERF_PROFILE="balanced" # Performance profile: low|balanced|maxCONTINUE_ON_TOOL_ERROR=true # Continue recon when a tool/module fails in parallel batches (set false for fail-fast).+PARALLEL_LOG_MODE="summary" # Parallel output mode: summary (compact) | tail (last N lines) | full (cat all)+PARALLEL_TAIL_LINES=20 # Number of tail lines shown per job in 'tail' mode (doubled on failure)++# Terminal output verbosity+OUTPUT_VERBOSITY=1 # 0=quiet (errors+final summary only), 1=normal (default), 2=verbose (PIDs, full parallel output, timestamps)# Extra featuresNOTIFICATION=false # Notification for every functiondiff --git a/reconftw.sh b/reconftw.shindex 134f5a3..48d510a 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -111,7 +111,7 @@ if [[ $OSTYPE == "darwin"* ]]; thenPATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"fi-PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:zrspanwvyh' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps,ai,check-tools,health-check,quick-rescan,incremental,adaptive-rate,dry-run,parallel,no-parallel,monitor,monitor-interval:,monitor-cycles:,refresh-cache,export:,report-only' -n 'reconFTW' -- "$@")+PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:zrspanwvyh' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps,ai,check-tools,health-check,quick-rescan,incremental,adaptive-rate,dry-run,parallel,no-parallel,monitor,monitor-interval:,monitor-cycles:,refresh-cache,export:,report-only,parallel-log:,quiet,verbose' -n 'reconFTW' -- "$@")exit_status=$?if [[ $exit_status -ne 0 ]]; then@@ -356,6 +356,26 @@ while true; doshiftcontinue;;+ '--parallel-log')+ CLI_PARALLEL_LOG_MODE="$2"+ if [[ ! "$CLI_PARALLEL_LOG_MODE" =~ ^(summary|tail|full)$ ]]; then+ printf "%b[%s] ERROR: Invalid --parallel-log value '%s' (allowed: summary|tail|full)%b\n" \+ "$bred" "$(date +'%Y-%m-%d %H:%M:%S')" "$CLI_PARALLEL_LOG_MODE" "$reset" >&2+ exit 1+ fi+ shift 2+ continue+ ;;+ '--quiet')+ CLI_OUTPUT_VERBOSITY=0+ shift+ continue+ ;;+ '--verbose')+ CLI_OUTPUT_VERBOSITY=2+ shift+ continue+ ;;'--help' | '-h')break;;@@ -411,6 +431,14 @@ fiif [[ -n "${CLI_PARALLEL_MODE:-}" ]]; thenPARALLEL_MODE="${CLI_PARALLEL_MODE}"fi+if [[ -n "${CLI_PARALLEL_LOG_MODE:-}" ]]; then+ PARALLEL_LOG_MODE="${CLI_PARALLEL_LOG_MODE}"+fi+if [[ -n "${CLI_OUTPUT_VERBOSITY:-}" ]]; then+ OUTPUT_VERBOSITY="${CLI_OUTPUT_VERBOSITY}"+ # Backward compat: verbose level sets VERBOSE=true+ [[ "${OUTPUT_VERBOSITY}" -ge 2 ]] && VERBOSE=true+fiif [[ $opt_deep ]]; thenDEEP=truediff --git a/tests/unit/test_parallel.bats b/tests/unit/test_parallel.batsindex a3d12e5..e06f3ce 100644--- a/tests/unit/test_parallel.bats+++ b/tests/unit/test_parallel.bats@@ -4,11 +4,11 @@setup() {# Source the parallel librarysource "${BATS_TEST_DIRNAME}/../../lib/parallel.sh"-+# Create temp directory for testsTEST_DIR=$(mktemp -d)cd "$TEST_DIR" || exit 1-+# Set up mock variablesyellow=""reset=""@@ -17,6 +17,9 @@ setup() {bgreen=""cyan=""VERBOSE=false+ PARALLEL_LOG_MODE="summary"+ PARALLEL_TAIL_LINES=20+ OUTPUT_VERBOSITY=1}teardown() {@@ -85,13 +88,16 @@ teardown() {}@test "parallel_funcs buffers output per function" {+ PARALLEL_LOG_MODE="full"func_a() { echo "A1"; sleep 0.05; echo "A2"; }func_b() { echo "B1"; sleep 0.05; echo "B2"; }run parallel_funcs 2 func_a func_b[ "$status" -eq 0 ]- [[ "$output" == *$'A1\nA2'* ]]- [[ "$output" == *$'B1\nB2'* ]]+ [[ "$output" == *"A1"* ]]+ [[ "$output" == *"A2"* ]]+ [[ "$output" == *"B1"* ]]+ [[ "$output" == *"B2"* ]]}@test "parallel_funcs cleans temporary buffered output" {@@ -175,3 +181,85 @@ teardown() {run parallel_funcs 2[ "$status" -eq 0 ]}++###############################################################################+# PARALLEL_LOG_MODE tests+###############################################################################++@test "summary mode shows [OK] for successful jobs" {+ PARALLEL_LOG_MODE="summary"+ ok_func() { echo "all good"; }++ run parallel_funcs 2 ok_func+ [ "$status" -eq 0 ]+ [[ "$output" == *"[OK]"* ]]+ [[ "$output" == *"ok_func"* ]]+}++@test "summary mode shows [FAIL] with last 5 lines on failure" {+ PARALLEL_LOG_MODE="summary"+ bad_func() { echo "line1"; echo "line2"; echo "line3"; echo "line4"; echo "error here"; return 1; }++ run parallel_funcs 2 bad_func+ [ "$status" -eq 1 ]+ [[ "$output" == *"[FAIL]"* ]]+ [[ "$output" == *"last 5 lines"* ]]+ [[ "$output" == *"error here"* ]]+}++@test "tail mode shows last N lines of output" {+ PARALLEL_LOG_MODE="tail"+ PARALLEL_TAIL_LINES=3+ chatty_func() { for i in $(seq 1 10); do echo "line$i"; done; }++ run parallel_funcs 2 chatty_func+ [ "$status" -eq 0 ]+ [[ "$output" == *"[OK]"* ]]+ [[ "$output" == *"line10"* ]]+ [[ "$output" == *"line9"* ]]+ [[ "$output" == *"line8"* ]]+}++@test "full mode shows complete output" {+ PARALLEL_LOG_MODE="full"+ verbose_func() { echo "start"; echo "middle"; echo "end"; }++ run parallel_funcs 2 verbose_func+ [ "$status" -eq 0 ]+ [[ "$output" == *"Output (verbose_func)"* ]]+ [[ "$output" == *"start"* ]]+ [[ "$output" == *"middle"* ]]+ [[ "$output" == *"end"* ]]+}++@test "batch summary line is printed after each batch" {+ PARALLEL_LOG_MODE="summary"+ fast_func() { echo "done"; }++ run parallel_funcs 2 fast_func+ [ "$status" -eq 0 ]+ [[ "$output" == *"batch:"* ]]+ [[ "$output" == *"1 jobs"* ]]+ [[ "$output" == *"0 failed"* ]]+}++@test "quiet mode suppresses OK output in summary" {+ PARALLEL_LOG_MODE="summary"+ OUTPUT_VERBOSITY=0+ quiet_func() { echo "shh"; }++ run parallel_funcs 2 quiet_func+ [ "$status" -eq 0 ]+ # Should NOT show [OK] in quiet mode+ [[ "$output" != *"[OK]"* ]]+}++@test "quiet mode still shows failures" {+ PARALLEL_LOG_MODE="summary"+ OUTPUT_VERBOSITY=0+ fail_quiet() { echo "broken"; return 1; }++ run parallel_funcs 2 fail_quiet+ [ "$status" -eq 1 ]+ [[ "$output" == *"[FAIL]"* ]]+}