mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-25 01:33:28 +01:00
More test fixes
This commit is contained in:
parent
c674e04fb8
commit
870243df74
10
.github/workflows/go-test.yml
vendored
10
.github/workflows/go-test.yml
vendored
@ -105,11 +105,11 @@ jobs:
|
||||
with:
|
||||
name: goldens-used-${{ matrix.os }}-${{ matrix.test_shard }}
|
||||
path: /tmp/goldens-used.txt
|
||||
- name: Setup tmate session
|
||||
if: ${{ failure() }}
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
with:
|
||||
limit-access-to-actor: true
|
||||
# - name: Setup tmate session
|
||||
# if: ${{ failure() }}
|
||||
# uses: mxschmitt/action-tmate@v3
|
||||
# with:
|
||||
# limit-access-to-actor: true
|
||||
check-goldens:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
|
@ -2478,7 +2478,7 @@ echo bar`)
|
||||
out = tester.RunInteractiveShell(t, `hishtory query -pipefail`)
|
||||
testutils.CompareGoldens(t, out, fmt.Sprintf("testCustomColumns-query-isAction=%v", testutils.IsGithubAction()))
|
||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE ENTER", "-pipefail"})
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery -pipefail")
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery")
|
||||
testName := "testCustomColumns-tquery-" + tester.ShellName()
|
||||
if testutils.IsGithubAction() {
|
||||
testName += "-isAction"
|
||||
@ -2735,7 +2735,7 @@ func TestTimestampFormat(t *testing.T) {
|
||||
out := hishtoryQuery(t, tester, "-pipefail -tablesizing")
|
||||
testutils.CompareGoldens(t, out, "TestTimestampFormat-query")
|
||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery ENTER", "-pipefail SPACE -tablesizing"})
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery -pipefail -tablesizing")
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery")
|
||||
testutils.CompareGoldens(t, out, "TestTimestampFormat-tquery")
|
||||
}
|
||||
|
||||
@ -2836,7 +2836,7 @@ echo foo`)
|
||||
out = tester.RunInteractiveShell(t, `hishtory query -pipefail`)
|
||||
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-query")
|
||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery ENTER", "-pipefail"})
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery -pipefail")
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery")
|
||||
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-tquery")
|
||||
|
||||
// And change the config to filter out duplicate rows
|
||||
@ -2852,7 +2852,7 @@ echo foo`)
|
||||
|
||||
// Check tquery
|
||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery ENTER", "-pipefail"})
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery -pipefail")
|
||||
out = stripRequiredPrefix(t, out, "hishtory tquery")
|
||||
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery")
|
||||
|
||||
// Check actually selecting it with query
|
||||
|
Loading…
Reference in New Issue
Block a user