@@ -39,17 +39,6 @@ const (
3939 spacedVfoxHome = `C:\Users\John Doe\.vfox`
4040)
4141
42- // vfoxHome returns the $VFOX_HOME for a combo. The fix for Windows homes
43- // containing a space (https://github.com/version-fox/vfox/pull/712) is on
44- // vfox main only: released builds still fail on such paths, so only main
45- // runs against spacedVfoxHome while the others keep an unspaced slot home.
46- func vfoxHome (userProfile , slot , vfoxVersion string ) string {
47- if vfoxVersion == "main" {
48- return spacedVfoxHome
49- }
50- return userProfile + `\vfox-e2e-runs\` + slot + `\.vfox`
51- }
52-
5342// pwshQuote renders a single-quoted PowerShell string literal.
5443func pwshQuote (s string ) string {
5544 return "'" + strings .ReplaceAll (s , "'" , "''" ) + "'"
@@ -69,15 +58,17 @@ type slotBox struct {
6958}
7059
7160// setupSlotEnv isolates the combo: USERPROFILE/TEMP/TMP point under
72- // vfox-e2e-runs\<slot>, while VFOX_HOME is a sibling .vfox (spacedVfoxHome
73- // for main), so parallel combos on one daemon never share vfox state.
74- func setupSlotEnv (ctx context.Context , t * testing.T , ctr tc.Container , slot , vfoxVersion string ) slotBox {
61+ // vfox-e2e-runs\<slot>, while VFOX_HOME is spacedVfoxHome. Each combo runs in
62+ // its own container, so the shared VFOX_HOME never leaks between combos. Both
63+ // vfox main and releases since v1.0.13 handle a home containing a space
64+ // (https://github.com/version-fox/vfox/pull/712).
65+ func setupSlotEnv (ctx context.Context , t * testing.T , ctr tc.Container , slot string ) slotBox {
7566 t .Helper ()
7667 userProfile := strings .TrimSpace (execOK (ctx , t , ctr , "$env:USERPROFILE" ))
7768 containerPath := strings .TrimSpace (execOK (ctx , t , ctr , "$env:PATH" ))
7869 procArch := strings .TrimSpace (execOK (ctx , t , ctr , "$env:PROCESSOR_ARCHITECTURE" ))
7970
80- home := vfoxHome ( userProfile , slot , vfoxVersion )
71+ home := spacedVfoxHome
8172 box := slotBox {slot : slot }
8273 box .slotRoot = userProfile + `\vfox-e2e-runs\` + slot
8374 box .tmp = box .slotRoot + `\tmp`
0 commit comments