Split the timestamp format test on is_action

This commit is contained in:
David Dworken 2022-11-12 06:39:51 -08:00
parent e3a793c753
commit e485dfdaf6
No known key found for this signature in database
2 changed files with 35 additions and 1 deletions

View File

@ -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) {

View 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 │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘