From 9bdb1ed4edc5606ca457880aaa42d9c84a869a07 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sat, 22 Oct 2022 23:54:35 -0700 Subject: [PATCH] Add debug code for a github actions only test failure --- client/client_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/client_test.go b/client/client_test.go index f2e740e..f0ddc9e 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1748,6 +1748,8 @@ func captureTerminalOutputWithShellName(t *testing.T, tester shellTester, overri return strings.TrimSpace(tester.RunInteractiveShell(t, fullCommand)) } +// TODO: check that if enable-control-r is false, then it isn't enabled + func testControlR(t *testing.T, tester shellTester, shellName string) { // Setup defer shared.BackupAndRestore(t)() @@ -1772,6 +1774,10 @@ func testControlR(t *testing.T, tester shellTester, shellName string) { // And check that the control-r binding brings up the search out := captureTerminalOutputWithShellName(t, tester, shellName, []string{"C-R"}) if !strings.Contains(out, "\n\n\n") { + if shellName == "zsh" { + // TODO: delete this debugging code + t.Fatalf("failed to find separator in %#v, compaudit=%#v", out, tester.RunInteractiveShell(t, "compaudit")) + } t.Fatalf("failed to find separator in %#v", out) } stripped := strings.TrimSpace(strings.Split(out, "\n\n\n")[1])