From 94c88c76fe2b4e1f495b81bce439bc8b39b27fe4 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Wed, 20 Apr 2022 20:56:01 -0700 Subject: [PATCH] Skip testUpdate when running on linux/arm64 since that isn't a supported platform --- client/client_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/client_test.go b/client/client_test.go index 1800058..76f1aa7 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -516,6 +516,9 @@ hishtory disable`) } func testUpdate(t *testing.T, tester shellTester) { + if runtime.GOOS == "linux" && runtime.GOARCH == "arm64" { + t.Skip("skipping on linux/arm64 which is unsupported") + } // Set up defer shared.BackupAndRestore(t)() userSecret := installHishtory(t, tester, "") @@ -710,7 +713,8 @@ func waitForBackgroundSavesToComplete(t *testing.T) { t.Fatalf("failed to check if hishtory was running: %v, stdout=%#v, stderr=%#v", err, stdout.String(), stderr.String()) } if !strings.Contains(stdout.String(), "\n") { - // pidof had no output, so hishtory isn't running and we're done waitng + // pidof had no output, so hishtory isn't running and we're done waiting + time.Sleep(1000 * time.Millisecond) return } time.Sleep(50 * time.Millisecond)