mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 22:42:04 +02:00
Fix bug in client_test that made me not realize that there was a bug in the install process
This commit is contained in:
parent
ab7db995aa
commit
a66e473bb8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user