mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-14 18:28:24 +01:00
Fix incorrect flags in test
This commit is contained in:
parent
c367ca2eb1
commit
da53939cf8
@ -1101,7 +1101,7 @@ func testInstallViaPythonScriptChild(t *testing.T, tester shellTester, onlineSta
|
|||||||
if onlineStatus == Offline {
|
if onlineStatus == Offline {
|
||||||
additionalFlags = "--offline"
|
additionalFlags = "--offline"
|
||||||
}
|
}
|
||||||
out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 - -- `+additionalFlags)
|
out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 - `+additionalFlags)
|
||||||
require.Contains(t, out, "Succesfully installed hishtory")
|
require.Contains(t, out, "Succesfully installed hishtory")
|
||||||
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
||||||
matches := r.FindStringSubmatch(out)
|
matches := r.FindStringSubmatch(out)
|
||||||
|
Loading…
Reference in New Issue
Block a user