Skip to content

Commit

Permalink
exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixq committed May 20, 2024
1 parent cbbc274 commit 42cfeab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/osv-scanner/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestRun(t *testing.T) {
{
name: "Scan locks-many",
args: []string{"", "./fixtures/locks-many"},
exit: 0,
exit: 1,
},
// all supported lockfiles in the directory should be checked
{
Expand Down Expand Up @@ -576,12 +576,12 @@ func TestRun_Licenses(t *testing.T) {
{
name: "No vulnerabilities with license summary",
args: []string{"", "--experimental-licenses-summary", "./fixtures/locks-many"},
exit: 0,
exit: 1,
},
{
name: "No vulnerabilities with license summary in markdown",
args: []string{"", "--experimental-licenses-summary", "--format=markdown", "./fixtures/locks-many"},
exit: 0,
exit: 1,
},
{
name: "Vulnerabilities and license summary",
Expand Down

0 comments on commit 42cfeab

Please sign in to comment.