From 76fa8b779d8790a9feddf617458af020895acecc Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 3 Apr 2026 13:22:43 -0700 Subject: [PATCH] Fix CI failures in youtube track-download tests - Use #!/bin/sh instead of #!/usr/bin/env sh so the fake yt-dlp shell script works when PATH is emptied by the SUBMINER_YTDLP_BIN test - Remove trailing blank line in heredoc rolling-auto output to match the bun script's output (avoids extra \n that breaks normalization assertion) --- src/core/services/youtube/track-download.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/services/youtube/track-download.test.ts b/src/core/services/youtube/track-download.test.ts index 99a5f85f..ce912e38 100644 --- a/src/core/services/youtube/track-download.test.ts +++ b/src/core/services/youtube/track-download.test.ts @@ -98,7 +98,7 @@ process.exit(0); function makeFakeYtDlpShellScript(dir: string): string { const scriptPath = path.join(dir, 'yt-dlp'); - const script = `#!/usr/bin/env sh + const script = `#!/bin/sh has_auto_subs=0 wants_auto_subs=0 wants_manual_subs=0 @@ -162,7 +162,6 @@ WEBVTT 00:00:03.000 --> 00:00:04.000 今日はいい天気ですね本当に - EOF elif [ "$YTDLP_FAKE_MODE" = "multi-primary-only-fail" ]; then primary_lang="\${sub_lang%%,*}"