Fix broken test on ubuntu that was introduced in 08e734a

This commit is contained in:
David Dworken 2023-10-21 13:44:08 -07:00
parent 4751004d7e
commit 5ec9f85e5e
No known key found for this signature in database

View File

@ -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.")
require.Contains(t, out, "exit\nbash") if runtime.GOOS == "darwin" {
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`)