build: fix env vars check for vcs details

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-12-14 09:45:13 +01:00
parent e21f56e801
commit cf8fa4a404
2 changed files with 8 additions and 2 deletions

View File

@ -43,6 +43,12 @@ func TestGetGitAttributes(t *testing.T) {
"vcs:revision",
},
},
{
name: "none",
envGitLabels: "false",
envGitInfo: "false",
expected: []string{},
},
{
name: "gitinfo",
envGitLabels: "false",