tests: shorten qmp path

pull/15071/head
Steven Powell 2022-10-04 12:05:48 -07:00
parent e1a5442b1a
commit e8190a6236
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
readonly OS_ARCH="${OS}-${ARCH}"
readonly TEST_ROOT="${HOME}/minikube-integration"
readonly TEST_HOME="${TEST_ROOT}/${OS_ARCH}-${DRIVER}-${CONTAINER_RUNTIME}-${MINIKUBE_LOCATION}-$$-${COMMIT}"
readonly TEST_HOME="${TEST_ROOT}/$$-${COMMIT:0:7}"
export GOPATH="$HOME/go"
export KUBECONFIG="${TEST_HOME}/kubeconfig"

View File

@ -63,7 +63,7 @@ func TestStartStop(t *testing.T) {
"--network-plugin=cni",
"--extra-config=kubeadm.pod-network-cidr=192.168.111.111/16",
}},
{"default-k8s-different-port", constants.DefaultKubernetesVersion, []string{
{"default-k8s-diff-port", constants.DefaultKubernetesVersion, []string{
"--apiserver-port=8444",
}},
{"no-preload", constants.NewestKubernetesVersion, []string{

View File

@ -34,8 +34,8 @@ func UniqueProfileName(prefix string) string {
if NoneDriver() {
return "minikube"
}
// example: prefix-20200413162239-3215
return fmt.Sprintf("%s-%s-%d", prefix, time.Now().Format("20060102150405"), os.Getpid())
// example: prefix-162239
return fmt.Sprintf("%s-%s", prefix, time.Now().Format("150405"))
}
// auditContains checks if the provided string is contained within the logs.