refractor(test): move aa-test to tests/cmd/

This commit is contained in:
Alexandre Pujol 2024-03-26 18:13:56 +00:00
parent 30859c8170
commit c852fd3a01
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -14,7 +14,7 @@ import (
"github.com/arduino/go-paths-helper" "github.com/arduino/go-paths-helper"
"github.com/roddhjav/apparmor.d/pkg/aa" "github.com/roddhjav/apparmor.d/pkg/aa"
"github.com/roddhjav/apparmor.d/pkg/logging" "github.com/roddhjav/apparmor.d/pkg/logging"
oss "github.com/roddhjav/apparmor.d/pkg/os" bcfg "github.com/roddhjav/apparmor.d/pkg/prebuild/cfg"
"github.com/roddhjav/apparmor.d/tests/integration" "github.com/roddhjav/apparmor.d/tests/integration"
) )
@ -123,7 +123,7 @@ func testDeps(dryRun bool) error {
} }
deps := tSuite.GetDependencies() deps := tSuite.GetDependencies()
switch oss.Distribution { switch bcfg.Distribution {
case "arch": case "arch":
arg := []string{"pacman", "-Sy", "--noconfirm"} arg := []string{"pacman", "-Sy", "--noconfirm"}
arg = append(arg, deps...) arg = append(arg, deps...)