mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Tweak zdotdir test to work on github actions
This commit is contained in:
parent
c36e147fae
commit
6017eac4a3
@ -2169,9 +2169,8 @@ func TestZDotDir(t *testing.T) {
|
||||
|
||||
// Check that hishtory respected ZDOTDIR
|
||||
zshrc, err := os.ReadFile(path.Join(homedir, data.HISHTORY_PATH, ".zshrc"))
|
||||
zshrc = []byte(tester.RunInteractiveShell(t, `cat ~/.hishtory/.zshrc`))
|
||||
testutils.Check(t, err)
|
||||
if string(zshrc) != "\n# Hishtory Config:\nexport PATH=\"$PATH:/Users/david/.hishtory\"\nsource /Users/david/.hishtory/config.zsh\n" {
|
||||
if !strings.Contains(string(zshrc), "# Hishtory Config:") {
|
||||
t.Fatalf("zshrc had unexpected contents=%#v", string(zshrc))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user