mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
Fix failing test + fix syntax error in workflow
This commit is contained in:
parent
62c29dc68c
commit
0c0943fc79
2
.github/workflows/slsa-releaser.yml
vendored
2
.github/workflows/slsa-releaser.yml
vendored
@ -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 }}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user