mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-22 13:01:33 +02:00
Fix broken test on ubuntu that was introduced in 08e734a
This commit is contained in:
parent
4751004d7e
commit
5ec9f85e5e
@ -1597,7 +1597,11 @@ func TestFish(t *testing.T) {
|
|||||||
require.Contains(t, out, "\nfoo\n")
|
require.Contains(t, out, "\nfoo\n")
|
||||||
require.NotContains(t, out, "There are still jobs active")
|
require.NotContains(t, out, "There are still jobs active")
|
||||||
require.NotContains(t, out, "A second attempt to exit will terminate them.")
|
require.NotContains(t, out, "A second attempt to exit will terminate them.")
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
require.Contains(t, out, "exit\nbash")
|
require.Contains(t, out, "exit\nbash")
|
||||||
|
} else {
|
||||||
|
require.Contains(t, out, "exit\nrunner@ghaction-runner-hostname:/$")
|
||||||
|
}
|
||||||
|
|
||||||
// Check export
|
// Check export
|
||||||
out = tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail | grep -v ps`)
|
out = tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail | grep -v ps`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user