Fix failing test + fix syntax error in workflow

This commit is contained in:
David Dworken
2022-04-19 19:21:39 -07:00
parent 62c29dc68c
commit 0c0943fc79
2 changed files with 3 additions and 3 deletions

View File

@@ -780,14 +780,14 @@ echo other`)
if strings.Count(out, "\n") != 2 {
t.Fatalf("hishtory query has unexpected number of lines: out=%#v", out)
}
if !strings.Contains(out, "~/.hishtory/") {
if !strings.Contains(out, "~/.hishtory") {
t.Fatalf("hishtory query has an incorrect CWD: out=%#v", out)
}
out = hishtoryQuery(t, tester, "echo other")
if strings.Count(out, "\n") != 2 {
t.Fatalf("hishtory query has unexpected number of lines: out=%#v", out)
}
if !strings.Contains(out, "/tmp/") {
if !strings.Contains(out, "/tmp") {
t.Fatalf("hishtory query has an incorrect CWD: out=%#v", out)
}
}