Add kubernetes-test.tar.gz

Add test artifacts to the build. This lets you do:

tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down

without having a git checkout.
This commit is contained in:
Zach Loafman
2014-12-17 11:41:47 -08:00
parent 7c66ebe2e0
commit d3aed6c9cd
4 changed files with 39 additions and 1 deletions

View File

@@ -56,7 +56,9 @@ func waitForPodRunning(c *client.Client, id string) {
}
}
// assetPath returns a path to the requested file; safe on all OSes.
// assetPath returns a path to the requested file; safe on all
// OSes. NOTE: If you use an asset in this test, you MUST add it to
// the KUBE_TEST_PORTABLE array in hack/lib/golang.sh.
func assetPath(pathElements ...string) string {
return filepath.Join(*repoRoot, filepath.Join(pathElements...))
}