commit 11af4fcb9d672b99ae25f27dbdc603ec394fcec5
parent 2add92927a857f4d4b46fa6bd895df653e7aa1ce
Author: triesap <tyson@radroots.org>
Date: Tue, 28 Apr 2026 18:47:01 +0000
macos: make host smoke deterministic
- allow run_host.sh to reuse a prebuilt host bundle
- pass the built debug bundle into test_host.sh launch checks
- keep normal run_host.sh behavior building when no bundle is supplied
- preserve launch, logging, raw log, and degraded-runtime assertions
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/platforms/macos/Scripts/run_host.sh b/platforms/macos/Scripts/run_host.sh
@@ -34,7 +34,11 @@ require_command /usr/libexec/PlistBuddy
require_env RADROOTS_APP_LOCAL_LOG_ROOT
require_env RADROOTS_APP_DEFAULT_NOSTR_RELAY_URL
-app_path="$("${script_dir}/build_host.sh")"
+if [[ -n "${RADROOTS_APP_HOST_BUNDLE_PATH:-}" ]]; then
+ app_path="${RADROOTS_APP_HOST_BUNDLE_PATH}"
+else
+ app_path="$("${script_dir}/build_host.sh")"
+fi
plist_path="${app_path}/Contents/Info.plist"
executable_name="$(
/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "${plist_path}"
diff --git a/platforms/macos/Scripts/test_host.sh b/platforms/macos/Scripts/test_host.sh
@@ -165,6 +165,7 @@ stderr_file="${local_log_root}/apps/local/app/app-macos-native/raw/stderr.${date
RADROOTS_APP_RUNTIME_MODE="${runtime_mode}" \
RADROOTS_APP_DEFAULT_NOSTR_RELAY_URL="${default_nostr_relay_url}" \
RADROOTS_APP_LOCAL_LOG_ROOT="${local_log_root}" \
+RADROOTS_APP_HOST_BUNDLE_PATH="${app_path}" \
"${script_dir}/run_host.sh" &
runner_pid="$!"
@@ -185,6 +186,7 @@ env -u HOME \
RADROOTS_APP_RUNTIME_MODE="${runtime_mode}" \
RADROOTS_APP_DEFAULT_NOSTR_RELAY_URL="${default_nostr_relay_url}" \
RADROOTS_APP_LOCAL_LOG_ROOT="${degraded_log_root}" \
+ RADROOTS_APP_HOST_BUNDLE_PATH="${app_path}" \
"${script_dir}/run_host.sh" &
degraded_runner_pid="$!"