test(reset): select a working Bash instead of an unusable WSL launcher (#671)

* test(reset): probe Bash variable expansion on Windows

Use a bounded variable-expansion probe so a launcher that starts successfully but consumes $x is rejected. Rebase over #676 and keep its upstream-checkout guard alongside Bash discovery.

Thanks to MadsLorentzen for diagnosing the launcher expansion failure and verifying the stronger probe.

* changelog: place the #671 entry under [Unreleased]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-10-20 17:26:53 +02:00
1 parent 64a6c90ec3
commit 215dfb5af9
5 files changed
+118 -3

No files matched your search

+6 -1
View File
@@ -8,9 +8,14 @@ import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
try:
from tests._bash import find_bash
except ImportError: # unittest discover -s tests imports modules top-level
from _bash import find_bash
COMMAND = Path(__file__).resolve().parent.parent / ".claude/commands/reset.md"
FOLDERS = ("cv", "linkedin", "diplomas", "references", "projects", "postings", "applications")
BASH = shutil.which("bash")
BASH = find_bash()
def symlinks_available():