You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rebuild_test.go
    path of file: ./repos/glide/action
    
    the code of the file until where you have to start completion: package action

import (
	"os"
	"testing"

	"github.com/Masterminds/glide/msg"
)

func TestRebuild(t *testing.T) {
	msg.Default.PanicOnDie = true
	wd, _ := os.Getwd()
	if err := os.Chdir("../test
    
func TestRebuild(t *testing.T) {
	msg.Default.PanicOnDie = true
	wd, _ := os.Getwd()
	if err := os.Chdir("../testdata/rebuild"); err != nil {
		t.Errorf("Could not change dir: %s (%s)", err, wd)
	}
	Rebuild()
	os.Chdir(wd)
}