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

@ -47,7 +47,7 @@ jobs:
name: ${{ needs.build.outputs.go-binary-name }}.intoto.jsonl
- name: Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, "-") }}
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') }}
with:
files: |
${{ needs.build.outputs.go-binary-name }}

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)
}
}