mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-23 21:41:38 +02:00
More test fixes
This commit is contained in:
parent
be1cd75550
commit
40caf8dac7
@ -177,6 +177,7 @@ yes | hishtory init `+userSecret)
|
||||
for _, item := range expected {
|
||||
require.Contains(t, out, item, "output is missing expected item")
|
||||
if strings.Count(out, item) != 1 {
|
||||
fmt.Println("TODO: Debugging: out=" + out)
|
||||
t.Fatalf("output has %#v in it multiple times! out=%#v", item, out)
|
||||
}
|
||||
}
|
||||
@ -478,7 +479,7 @@ hishtory disable`)
|
||||
manuallySubmitHistoryEntry(t, userSecret, entry)
|
||||
out = hishtoryQuery(t, tester, `-echo -install -pipefail`)
|
||||
require.NotContains(t, out, "echo")
|
||||
if strings.Count(out, "\n") != 4 {
|
||||
if strings.Count(out, "\n") != 6 {
|
||||
t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out)
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
CWD Hostname Exit Code Command
|
||||
/ ghaction-runner-hostname 0 hishtory config-set displayed-columns CWD Hostname 'Exit Code' Command
|
||||
/ ghaction-runner-hostname 0 fish
|
||||
/ ghaction-runner-hostname 0 echo foo
|
||||
/ ghaction-runner-hostname 0 ls /tmp/ &
|
||||
/ ghaction-runner-hostname 0 echo "foo"
|
||||
/ ghaction-runner-hostname 0 echo bar
|
||||
/ ghaction-runner-hostname 0 echo foo
|
||||
/ ghaction-runner-hostname 0 hishtory config-set displayed-columns CWD Hostname 'Exit Code' Command
|
||||
/ ghaction-runner-hostname 0 exit
|
||||
/ ghaction-runner-hostname 0 echo foo
|
||||
/ ghaction-runner-hostname 0 fish
|
||||
/ ghaction-runner-hostname 0 ls /tmp/ &
|
||||
/ ghaction-runner-hostname 0 echo "foo"
|
||||
/ ghaction-runner-hostname 0 echo bar
|
||||
/ ghaction-runner-hostname 0 echo foo
|
||||
|
Loading…
x
Reference in New Issue
Block a user