agent: the Windows-only WSL test builds again — wslList returns the names and whether wsl.exe answered, and the test took it as the names alone

This commit is contained in:
yetone committed 2026-09-28 17:43:10 +08:00
1 parent 6294dd0ac5
commit ea6a5f53e7
1 file changed
+3 -2
+3 -2
View File
@@ -19,12 +19,13 @@ func TestWSLCodexLive(t *testing.T) {
if name == "" {
t.Skip("MAGPIE_WSL_TEST_DISTRO not set")
}
names, _ := wslList()
found := false
for _, n := range wslList() {
for _, n := range names {
found = found || n == name
}
if !found {
t.Fatalf("%s not in %q", name, wslList())
t.Fatalf("%s not in %q", name, names)
}
home := t.TempDir()
for _, k := range []string{"HOME", "USERPROFILE"} {