Skip to content

Commit a802ddc

Browse files
committed
Temporarily enable alternate timer_strict() path for testing
1 parent 549fa7c commit a802ddc

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

ops.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
#!/usr/bin/env bash
12
# 2025.08.11 rmh Address occasional build failures due to missing part file asset
23

3-
#!/usr/bin/env bash
44
# ops.sh — runtime overrides loaded by ubiquitous_bash.sh
55

66
# --- Strict timeout: non-zero on timeout, prefer coreutils 'timeout' ---
77
_timeout_strict() {
88
_messagePlain_probe "_timeout_strict → $(printf '%q ' "$@")"
9-
if command -v timeout >/dev/null 2>&1; then
10-
# Expected exits:
11-
# 0: success
12-
# 124: command timeout
13-
# 125: timeout command failed
14-
# 126/7: command could not run
15-
# Other: command exit code
16-
_messagePlain_probe "_timeout_strict: coreutils timeout path"
17-
timeout -k 5 "$@"; local rc=$?
18-
_messagePlain_probe "_timeout_strict: coreutils rc=$rc"
19-
return "$rc"
20-
fi
21-
9+
# if command -v timeout >/dev/null 2>&1; then
10+
# # Expected exits:
11+
# # 0: success
12+
# # 124: command timeout
13+
# # 125: timeout command failed
14+
# # 126/7: command could not run
15+
# # Other: command exit code
16+
# _messagePlain_probe "_timeout_strict: coreutils timeout path"
17+
# timeout -k 5 "$@"; local rc=$?
18+
# _messagePlain_probe "_timeout_strict: coreutils rc=$rc"
19+
# return "$rc"
20+
# fi
21+
22+
_messagePlain_warn "==rmh== **** TEMP _timeout_strict() PATH ***"
2223
_messagePlain_probe "_timeout_strict: fallback path"
2324
# path not dynamically tested due to coreutils being present
2425
(

0 commit comments

Comments
 (0)