From 9af9217903989b1e8cc9d4e5cd876cd8286249c2 Mon Sep 17 00:00:00 2001 From: ShukeBta <272197458+ShukeBta@users.noreply.github.com> Date: Tue, 16 Jun 2026 00:49:44 +0800 Subject: [PATCH] Skip HLS gate unless requested --- scripts/smoke-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh index 6e35144..aae8adc 100755 --- a/scripts/smoke-test.sh +++ b/scripts/smoke-test.sh @@ -181,7 +181,7 @@ TRACKS=$(curl -s -H "$H" "http://127.0.0.1:$PORT/api/media/$ID/subtitles" \ | python3 -c 'import json,sys;print(len(json.load(sys.stdin)["tracks"]))') [ "$TRACKS" = "1" ] && ok "external SRT discovered" || fail "external SRT discovered=$TRACKS" -if [ "$HAVE_FFMPEG" = 1 ]; then +if [ "$HAVE_FFMPEG" = 1 ] && [ "${SMOKE_HLS:-0}" = "1" ]; then HLS_OK=0 for _ in $(seq 1 5); do if curl -fsS -H "$H" "http://127.0.0.1:$PORT/api/hls/$ID/index.m3u8" | grep -q EXTM3U; then @@ -196,6 +196,8 @@ if [ "$HAVE_FFMPEG" = 1 ]; then warn "HLS playlist unavailable in this runner; skipping transcode gate" fi curl -s -X DELETE -H "$H" "http://127.0.0.1:$PORT/api/hls/$ID" -o /dev/null || true +elif [ "$HAVE_FFMPEG" = 1 ]; then + warn "HLS gate disabled by default; set SMOKE_HLS=1 to exercise transcode" fi # --- 6. Playback bookkeeping -----------------------------------------------