Fix bug in client_test that made me not realize that there was a bug in the install process

This commit is contained in:
David Dworken 2022-10-16 09:56:14 -07:00
parent ab7db995aa
commit a66e473bb8

View File

@ -1102,6 +1102,7 @@ echo other`)
func testInstallViaPythonScript(t *testing.T, tester shellTester) {
// Set up
defer shared.BackupAndRestore(t)()
defer shared.BackupAndRestoreEnv("HISHTORY_TEST")()
// Install via the python script
out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 -`)
@ -1127,6 +1128,7 @@ func testInstallViaPythonScript(t *testing.T, tester shellTester) {
}
// And test that it recorded that command
time.Sleep(time.Second)
out = tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail`)
if out != "hishtory status\n" {
t.Fatalf("unexpected output from hishtory export=%#v", out)