@@ -69,6 +69,7 @@ func TestVoltBuildT1ProfileVimrcGvimrcExists(t *testing.T) {
69
69
// =============== setup =============== //
70
70
71
71
testutil .SetUpEnv (t )
72
+ defer testutil .CleanUpEnv (t )
72
73
73
74
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
74
75
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
@@ -93,6 +94,7 @@ func TestVoltBuildT1ProfileVimrcExists(t *testing.T) {
93
94
// =============== setup =============== //
94
95
95
96
testutil .SetUpEnv (t )
97
+ defer testutil .CleanUpEnv (t )
96
98
97
99
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
98
100
@@ -116,6 +118,7 @@ func TestVoltBuildT1ProfileGvimrcExists(t *testing.T) {
116
118
// =============== setup =============== //
117
119
118
120
testutil .SetUpEnv (t )
121
+ defer testutil .CleanUpEnv (t )
119
122
120
123
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
121
124
@@ -139,6 +142,7 @@ func TestVoltBuildT2UserVimrcGvimrcExists(t *testing.T) {
139
142
// =============== setup =============== //
140
143
141
144
testutil .SetUpEnv (t )
145
+ defer testutil .CleanUpEnv (t )
142
146
143
147
installVimRC (t , "vimrc-nomagic.vim" , pathutil .Vimrc )
144
148
installVimRC (t , "gvimrc-nomagic.vim" , pathutil .Gvimrc )
@@ -163,6 +167,7 @@ func TestVoltBuildT2UserVimrcExists(t *testing.T) {
163
167
// =============== setup =============== //
164
168
165
169
testutil .SetUpEnv (t )
170
+ defer testutil .CleanUpEnv (t )
166
171
167
172
installVimRC (t , "vimrc-nomagic.vim" , pathutil .Vimrc )
168
173
@@ -187,6 +192,7 @@ func TestErrVoltBuildT2CannotOverwriteUserVimrc(t *testing.T) {
187
192
// =============== setup =============== //
188
193
189
194
testutil .SetUpEnv (t )
195
+ defer testutil .CleanUpEnv (t )
190
196
191
197
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
192
198
installVimRC (t , "vimrc-nomagic.vim" , pathutil .Vimrc )
@@ -212,6 +218,7 @@ func TestErrVoltBuildT2CannotOverwriteUserGvimrc(t *testing.T) {
212
218
// =============== setup =============== //
213
219
214
220
testutil .SetUpEnv (t )
221
+ defer testutil .CleanUpEnv (t )
215
222
216
223
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
217
224
installVimRC (t , "gvimrc-nomagic.vim" , pathutil .Gvimrc )
@@ -237,6 +244,7 @@ func TestErrVoltBuildT2DontInstallVimrc(t *testing.T) {
237
244
// =============== setup =============== //
238
245
239
246
testutil .SetUpEnv (t )
247
+ defer testutil .CleanUpEnv (t )
240
248
241
249
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
242
250
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
@@ -263,6 +271,7 @@ func TestErrVoltBuildT2DontInstallGvimrc(t *testing.T) {
263
271
// =============== setup =============== //
264
272
265
273
testutil .SetUpEnv (t )
274
+ defer testutil .CleanUpEnv (t )
266
275
267
276
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
268
277
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
@@ -289,6 +298,7 @@ func TestVoltBuildT2CanInstallUserVimrc(t *testing.T) {
289
298
// =============== setup =============== //
290
299
291
300
testutil .SetUpEnv (t )
301
+ defer testutil .CleanUpEnv (t )
292
302
293
303
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
294
304
installVimRC (t , "gvimrc-nomagic.vim" , pathutil .Gvimrc )
@@ -314,6 +324,7 @@ func TestVoltBuildT3OverwriteUserVimrcGvimrcByProfileVimrcGvimrc(t *testing.T) {
314
324
// =============== setup =============== //
315
325
316
326
testutil .SetUpEnv (t )
327
+ defer testutil .CleanUpEnv (t )
317
328
318
329
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
319
330
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
@@ -341,6 +352,7 @@ func TestVoltBuildT3OverwriteUserGvimrcByProfileGvimrc(t *testing.T) {
341
352
// =============== setup =============== //
342
353
343
354
testutil .SetUpEnv (t )
355
+ defer testutil .CleanUpEnv (t )
344
356
345
357
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
346
358
installVimRC (t , "gvimrc-magic.vim" , pathutil .Gvimrc )
@@ -366,6 +378,7 @@ func TestVoltBuildT3OverwriteUserVimrcByProfileVimrc(t *testing.T) {
366
378
// =============== setup =============== //
367
379
368
380
testutil .SetUpEnv (t )
381
+ defer testutil .CleanUpEnv (t )
369
382
370
383
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
371
384
installVimRC (t , "vimrc-magic.vim" , pathutil .Vimrc )
@@ -391,6 +404,7 @@ func TestVoltBuildT3RemoveUserVimrcGvimrc(t *testing.T) {
391
404
// =============== setup =============== //
392
405
393
406
testutil .SetUpEnv (t )
407
+ defer testutil .CleanUpEnv (t )
394
408
395
409
installVimRC (t , "vimrc-magic.vim" , pathutil .Vimrc )
396
410
installVimRC (t , "gvimrc-magic.vim" , pathutil .Gvimrc )
@@ -416,6 +430,7 @@ func TestVoltBuildT3InstallGvimrcAndRemoveUserVimrc(t *testing.T) {
416
430
// =============== setup =============== //
417
431
418
432
testutil .SetUpEnv (t )
433
+ defer testutil .CleanUpEnv (t )
419
434
420
435
installProfileRC (t , "default" , "gvimrc-nomagic.vim" , pathutil .ProfileGvimrc )
421
436
installVimRC (t , "vimrc-magic.vim" , pathutil .Vimrc )
@@ -441,6 +456,7 @@ func TestVoltBuildT3InstallVimrcAndRemoveUserGvimrc(t *testing.T) {
441
456
// =============== setup =============== //
442
457
443
458
testutil .SetUpEnv (t )
459
+ defer testutil .CleanUpEnv (t )
444
460
445
461
installProfileRC (t , "default" , "vimrc-nomagic.vim" , pathutil .ProfileVimrc )
446
462
installVimRC (t , "gvimrc-magic.vim" , pathutil .Gvimrc )
@@ -466,6 +482,7 @@ func TestVoltBuildT4NoVimrcGvimrc(t *testing.T) {
466
482
// =============== setup =============== //
467
483
468
484
testutil .SetUpEnv (t )
485
+ defer testutil .CleanUpEnv (t )
469
486
470
487
// =============== run =============== //
471
488
@@ -490,6 +507,7 @@ func voltBuildGitNoVimRepos(t *testing.T, full bool, strategy string) {
490
507
// =============== setup =============== //
491
508
492
509
testutil .SetUpEnv (t )
510
+ defer testutil .CleanUpEnv (t )
493
511
reposPathList := []pathutil.ReposPath {"github.com/tyru/caw.vim" }
494
512
teardown := testutil .SetUpRepos (t , "caw.vim" , lockjson .ReposGitType , reposPathList , strategy )
495
513
defer teardown ()
@@ -536,6 +554,7 @@ func voltBuildGitVimDirOlder(t *testing.T, full bool, strategy string) {
536
554
// =============== setup =============== //
537
555
538
556
testutil .SetUpEnv (t )
557
+ defer testutil .CleanUpEnv (t )
539
558
reposPathList := []pathutil.ReposPath {"github.com/tyru/caw.vim" }
540
559
teardown := testutil .SetUpRepos (t , "caw.vim" , lockjson .ReposGitType , reposPathList , strategy )
541
560
defer teardown ()
@@ -587,6 +606,7 @@ func voltBuildGitVimDirNewer(t *testing.T, full bool, strategy string) {
587
606
// =============== setup =============== //
588
607
589
608
testutil .SetUpEnv (t )
609
+ defer testutil .CleanUpEnv (t )
590
610
reposPathList := []pathutil.ReposPath {"github.com/tyru/caw.vim" }
591
611
teardown := testutil .SetUpRepos (t , "caw.vim" , lockjson .ReposGitType , reposPathList , strategy )
592
612
defer teardown ()
@@ -639,6 +659,7 @@ func voltBuildStaticNoVimRepos(t *testing.T, full bool, strategy string) {
639
659
// =============== setup =============== //
640
660
641
661
testutil .SetUpEnv (t )
662
+ defer testutil .CleanUpEnv (t )
642
663
reposPathList := []pathutil.ReposPath {"localhost/local/hello" }
643
664
teardown := testutil .SetUpRepos (t , "hello" , lockjson .ReposStaticType , reposPathList , strategy )
644
665
defer teardown ()
@@ -685,6 +706,7 @@ func voltBuildStaticVimDirOlder(t *testing.T, full bool, strategy string) {
685
706
// =============== setup =============== //
686
707
687
708
testutil .SetUpEnv (t )
709
+ defer testutil .CleanUpEnv (t )
688
710
reposPathList := []pathutil.ReposPath {"localhost/local/hello" }
689
711
teardown := testutil .SetUpRepos (t , "hello" , lockjson .ReposStaticType , reposPathList , strategy )
690
712
defer teardown ()
@@ -736,6 +758,7 @@ func voltBuildStaticVimDirNewer(t *testing.T, full bool, strategy string) {
736
758
// =============== setup =============== //
737
759
738
760
testutil .SetUpEnv (t )
761
+ defer testutil .CleanUpEnv (t )
739
762
reposPathList := []pathutil.ReposPath {"localhost/local/hello" }
740
763
teardown := testutil .SetUpRepos (t , "hello" , lockjson .ReposStaticType , reposPathList , strategy )
741
764
defer teardown ()
0 commit comments