mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-14 09:08:44 +02:00
Disable CGO in one more place (plus add a todo)
This commit is contained in:
@ -876,7 +876,7 @@ func testHishtoryBackgroundSaving(t *testing.T, tester shellTester) {
|
|||||||
|
|
||||||
// Test install with an unset HISHTORY_TEST var so that we save in the background (this is likely to be flakey!)
|
// Test install with an unset HISHTORY_TEST var so that we save in the background (this is likely to be flakey!)
|
||||||
out := tester.RunInteractiveShell(t, `unset HISHTORY_TEST
|
out := tester.RunInteractiveShell(t, `unset HISHTORY_TEST
|
||||||
go build -o /tmp/client
|
CGO_ENABLED=0 go build -o /tmp/client
|
||||||
/tmp/client install`)
|
/tmp/client install`)
|
||||||
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
||||||
matches := r.FindStringSubmatch(out)
|
matches := r.FindStringSubmatch(out)
|
||||||
@ -1494,3 +1494,5 @@ ls /tmp`, randomCmdUuid, randomCmdUuid)
|
|||||||
t.Fatalf("hishtory export mismatch (-expected +got):\n%s\nout=%#v", diff, out)
|
t.Fatalf("hishtory export mismatch (-expected +got):\n%s\nout=%#v", diff, out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Add a test with different users
|
||||||
|
Reference in New Issue
Block a user