added missing trailing slash
parent
0e52a659fb
commit
3aaf0ff4ea
|
@ -371,7 +371,7 @@ func DisplayError(msg string, err error) {
|
|||
func getLatestLogFileName() (string, error) {
|
||||
dir := os.Getenv("TMPDIR")
|
||||
if dir == "" {
|
||||
dir = "/tmp"
|
||||
dir = "/tmp/"
|
||||
}
|
||||
args := fmt.Sprintf("cd %s && echo %s$(ls -t *minikube_*_*_*log | head -1)", dir, dir)
|
||||
c := exec.Command("/bin/bash", "-c", args)
|
||||
|
|
|
@ -118,7 +118,7 @@ func TestErr(t *testing.T) {
|
|||
func TestGetLatestLogFile(t *testing.T) {
|
||||
td := os.Getenv("TMPDIR")
|
||||
if td == "" {
|
||||
td = "/tmp"
|
||||
td = "/tmp/"
|
||||
}
|
||||
want := fmt.Sprintf("%sminikube_test_test_test.log", td)
|
||||
f, err := os.Create(want)
|
||||
|
|
Loading…
Reference in New Issue