pull/10176/head
Sharif Elgamal 2021-01-19 15:53:12 -08:00
parent 1183f28d3b
commit 84c9de898a
1 changed files with 5 additions and 2 deletions

View File

@ -56,7 +56,10 @@ func TestStress(t *testing.T) {
}
if runtime.GOOS != "windows" {
os.Chmod(oldPath, 0755)
err := os.Chmod(oldPath, 0755)
if err != nil {
t.Fatalf("Failed to chmod old binary: %v", err)
}
}
for i := 1; i <= *loops; i++ {
@ -68,7 +71,7 @@ func TestStress(t *testing.T) {
// This run the guts of the actual test
func runStress(t *testing.T, oldPath string, profile string, i int) {
// Cleanup old runs
exec.Command(newPath, "delete", "-p", profile).Run()
runCommand(t, false, newPath, "delete", "-p", profile)
t.Logf("Hot upgrade from %s to HEAD", *upgradeFrom)
runCommand(t, true, oldPath, "start", "-p", profile, *startArgs, "--alsologtostderr")