mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02: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: ${{ needs.build.outputs.go-binary-name }}.intoto.jsonl
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
|
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:
|
with:
|
||||||
files: |
|
files: |
|
||||||
${{ needs.build.outputs.go-binary-name }}
|
${{ needs.build.outputs.go-binary-name }}
|
||||||
|
@ -780,14 +780,14 @@ echo other`)
|
|||||||
if strings.Count(out, "\n") != 2 {
|
if strings.Count(out, "\n") != 2 {
|
||||||
t.Fatalf("hishtory query has unexpected number of lines: out=%#v", out)
|
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)
|
t.Fatalf("hishtory query has an incorrect CWD: out=%#v", out)
|
||||||
}
|
}
|
||||||
out = hishtoryQuery(t, tester, "echo other")
|
out = hishtoryQuery(t, tester, "echo other")
|
||||||
if strings.Count(out, "\n") != 2 {
|
if strings.Count(out, "\n") != 2 {
|
||||||
t.Fatalf("hishtory query has unexpected number of lines: out=%#v", out)
|
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)
|
t.Fatalf("hishtory query has an incorrect CWD: out=%#v", out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user