remove ENV stuff
This commit is contained in:
parent
00d9cbf64f
commit
7a6a5a2582
|
@ -67,8 +67,6 @@ func fullRun(testDir string) {
|
||||||
testDir = "goclonetest"
|
testDir = "goclonetest"
|
||||||
os.Mkdir(testDir, 0755)
|
os.Mkdir(testDir, 0755)
|
||||||
os.Chdir(testDir)
|
os.Chdir(testDir)
|
||||||
os.Unsetenv("FORGE_CONFIG")
|
|
||||||
os.Unsetenv("FORGE_GOSRC")
|
|
||||||
me.forge = forgepb.Init()
|
me.forge = forgepb.Init()
|
||||||
|
|
||||||
wd := filepath.Join(me.startPwd, testDir)
|
wd := filepath.Join(me.startPwd, testDir)
|
||||||
|
@ -102,16 +100,12 @@ func prepBinary(testDir string, gopath string) {
|
||||||
// switching GOSRC paths in the middle of doing things? It probably
|
// switching GOSRC paths in the middle of doing things? It probably
|
||||||
// shouldn't be supported or work the way it does. which, in this
|
// shouldn't be supported or work the way it does. which, in this
|
||||||
// case, breaks this test app
|
// case, breaks this test app
|
||||||
os.Unsetenv("FORGE_CONFIG")
|
|
||||||
os.Unsetenv("FORGE_GOSRC")
|
|
||||||
runStrict(wd, []string{"sync"})
|
runStrict(wd, []string{"sync"})
|
||||||
runStrict(wd, []string{"/home/jcarr/go/bin/go-clone", "--recursive", gopath, "--work", "--ignore"})
|
runStrict(wd, []string{"/home/jcarr/go/bin/go-clone", "--recursive", gopath, "--work", "--ignore"})
|
||||||
// runStrict(wd, []string{"/home/jcarr/go/bin/go-clone", "--work"})
|
// runStrict(wd, []string{"/home/jcarr/go/bin/go-clone", "--work"})
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildBinary(testDir string, gopath string) {
|
func buildBinary(testDir string, gopath string) {
|
||||||
os.Unsetenv("FORGE_CONFIG")
|
|
||||||
os.Unsetenv("FORGE_GOSRC")
|
|
||||||
me.forge = forgepb.Init()
|
me.forge = forgepb.Init()
|
||||||
if err := me.forge.ConfigSave(); err != nil {
|
if err := me.forge.ConfigSave(); err != nil {
|
||||||
log.Info("crapnuts. forge.ConfigSave() failed", err)
|
log.Info("crapnuts. forge.ConfigSave() failed", err)
|
||||||
|
|
Loading…
Reference in New Issue