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:
1 file changed
+3
-2
@@ -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"} {
|
||||
|
||||
Reference in new issue
Block a user