mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 19:37:59 +02:00
Skip testUpdate when running on linux/arm64 since that isn't a supported platform
This commit is contained in:
parent
8b364dcf53
commit
94c88c76fe
@ -516,6 +516,9 @@ hishtory disable`)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testUpdate(t *testing.T, tester shellTester) {
|
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
|
// Set up
|
||||||
defer shared.BackupAndRestore(t)()
|
defer shared.BackupAndRestore(t)()
|
||||||
userSecret := installHishtory(t, tester, "")
|
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())
|
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") {
|
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
|
return
|
||||||
}
|
}
|
||||||
time.Sleep(50 * time.Millisecond)
|
time.Sleep(50 * time.Millisecond)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user