test/e2e: test quadlet with and without --user

This seems to be a testing gap, we need to test both for full coverage.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-10-17 15:40:53 +02:00
parent 993ecd5a05
commit ada75c0bb8

View File

@ -660,7 +660,12 @@ var _ = Describe("quadlet system generator", func() {
}
// Run quadlet to convert the file
session := podmanTest.Quadlet([]string{"--user", "--no-kmsg-log", generatedDir}, quadletDir)
var args []string
if isRootless() {
args = append(args, "--user")
}
args = append(args, "--no-kmsg-log", generatedDir)
session := podmanTest.Quadlet(args, quadletDir)
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(exitCode))