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)
This commit is contained in:
2026-04-03 13:22:43 -07:00
parent 4b2861bd71
commit 76fa8b779d

View File

@@ -98,7 +98,7 @@ process.exit(0);
function makeFakeYtDlpShellScript(dir: string): string { function makeFakeYtDlpShellScript(dir: string): string {
const scriptPath = path.join(dir, 'yt-dlp'); const scriptPath = path.join(dir, 'yt-dlp');
const script = `#!/usr/bin/env sh const script = `#!/bin/sh
has_auto_subs=0 has_auto_subs=0
wants_auto_subs=0 wants_auto_subs=0
wants_manual_subs=0 wants_manual_subs=0
@@ -162,7 +162,6 @@ WEBVTT
00:00:03.000 --> 00:00:04.000 00:00:03.000 --> 00:00:04.000
今日はいい天気ですね本当に 今日はいい天気ですね本当に
EOF EOF
elif [ "$YTDLP_FAKE_MODE" = "multi-primary-only-fail" ]; then elif [ "$YTDLP_FAKE_MODE" = "multi-primary-only-fail" ]; then
primary_lang="\${sub_lang%%,*}" primary_lang="\${sub_lang%%,*}"