@@ -64,16 +64,16 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
64
64
}
65
65
tmpDirToRestore := os .Getenv ("TMPDIR" )
66
66
_ = os .Setenv ("TMPDIR" , "/tmp" )
67
- e := & Executor {}
68
- ePreCreate := & Executor {}
69
- ePreCreate .SetPreCreatedWorkingDir ("/tmp/precreated-build" )
67
+ executorDefault := & Executor {}
68
+ executorPreCreated := & Executor {}
69
+ executorPreCreated .SetPreCreatedWorkingDir ("/tmp/precreated-build" )
70
70
examples := []struct {
71
71
Executor * Executor
72
72
Description string
73
73
Given , Expected map [string ]string
74
74
}{
75
75
{
76
- e ,
76
+ executorDefault ,
77
77
"empty" ,
78
78
map [string ]string {},
79
79
map [string ]string {
@@ -82,7 +82,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
82
82
},
83
83
},
84
84
{
85
- ePreCreate ,
85
+ executorPreCreated ,
86
86
"empty (precreated)" ,
87
87
map [string ]string {},
88
88
map [string ]string {
@@ -91,7 +91,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
91
91
},
92
92
},
93
93
{
94
- e ,
94
+ executorDefault ,
95
95
"only working" ,
96
96
map [string ]string {
97
97
"CIRRUS_WORKING_DIR" : "/tmp/foo" ,
@@ -102,7 +102,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
102
102
},
103
103
},
104
104
{
105
- ePreCreate ,
105
+ executorPreCreated ,
106
106
"only working (precreated)" ,
107
107
map [string ]string {
108
108
"CIRRUS_WORKING_DIR" : "/tmp/foo" ,
@@ -113,7 +113,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
113
113
},
114
114
},
115
115
{
116
- e ,
116
+ executorDefault ,
117
117
"only working (monorepo)" ,
118
118
map [string ]string {
119
119
"CIRRUS_WORKING_DIR" : "$CIRRUS_CLONE_DIR/foo" ,
@@ -124,7 +124,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
124
124
},
125
125
},
126
126
{
127
- ePreCreate ,
127
+ executorPreCreated ,
128
128
"only working (monorepo + precreated)" ,
129
129
map [string ]string {
130
130
"CIRRUS_WORKING_DIR" : "$CIRRUS_CLONE_DIR/foo" ,
@@ -135,7 +135,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
135
135
},
136
136
},
137
137
{
138
- e ,
138
+ executorDefault ,
139
139
"only clone" ,
140
140
map [string ]string {
141
141
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
@@ -146,7 +146,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
146
146
},
147
147
},
148
148
{
149
- ePreCreate ,
149
+ executorPreCreated ,
150
150
"only clone (precreated)" ,
151
151
map [string ]string {
152
152
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
@@ -157,7 +157,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
157
157
},
158
158
},
159
159
{
160
- e ,
160
+ executorDefault ,
161
161
"both" ,
162
162
map [string ]string {
163
163
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
@@ -169,7 +169,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
169
169
},
170
170
},
171
171
{
172
- ePreCreate ,
172
+ executorPreCreated ,
173
173
"both (precreated)" ,
174
174
map [string ]string {
175
175
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
@@ -181,7 +181,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
181
181
},
182
182
},
183
183
{
184
- e ,
184
+ executorDefault ,
185
185
"both (monorepo)" ,
186
186
map [string ]string {
187
187
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
@@ -193,7 +193,7 @@ func TestPopulateCloneAndWorkingDirEnvironmentVariables(t *testing.T) {
193
193
},
194
194
},
195
195
{
196
- ePreCreate ,
196
+ executorPreCreated ,
197
197
"both (monorepo + precreated)" ,
198
198
map [string ]string {
199
199
"CIRRUS_CLONE_DIR" : "/tmp/foo" ,
0 commit comments