github.com/MealCraft/glide@v0.13.4/action/rebuild_test.go (about)

     1  package action
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  
     7  	"github.com/Masterminds/glide/msg"
     8  )
     9  
    10  func TestRebuild(t *testing.T) {
    11  	msg.Default.PanicOnDie = true
    12  	wd, _ := os.Getwd()
    13  	if err := os.Chdir("../testdata/rebuild"); err != nil {
    14  		t.Errorf("Could not change dir: %s (%s)", err, wd)
    15  	}
    16  	Rebuild()
    17  	os.Chdir(wd)
    18  }