mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-03 04:00:29 +01:00
Split the timestamp format test on is_action
This commit is contained in:
parent
e3a793c753
commit
e485dfdaf6
@ -2138,7 +2138,11 @@ func TestTimestampFormat(t *testing.T) {
|
||||
compareGoldens(t, out, "TestTimestampFormat-query")
|
||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail SPACE -tablesizing ENTER"})
|
||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||
compareGoldens(t, out, "TestTimestampFormat-tquery")
|
||||
goldenName := "TestTimestampFormat-tquery"
|
||||
if os.Getenv("GITHUB_ACTION") != "" {
|
||||
goldenName += "-isAction"
|
||||
}
|
||||
compareGoldens(t, out, goldenName)
|
||||
}
|
||||
|
||||
func TestRemoveDuplicateRows(t *testing.T) {
|
||||
|
30
client/lib/goldens/TestTimestampFormat-tquery-isAction
Normal file
30
client/lib/goldens/TestTimestampFormat-tquery-isAction
Normal file
@ -0,0 +1,30 @@
|
||||
-pipefail -tablesizing
|
||||
|
||||
|
||||
|
||||
Search Query: > -pipefail -tablesizing
|
||||
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost ~/foo/ 2022/Apr/16 01:03 24s 3 table_cmd2 │
|
||||
│ localhost /tmp/ 2022/Apr/16 01:03 4s 2 table_cmd1 │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
Loading…
Reference in New Issue
Block a user