aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-04-27 14:23:23 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-04-29 07:22:18 +0200
commitb2414b580e236e011d60028e645ab41096035ee3 (patch)
tree7e639a4c40d728c3be4e65e2870f785ced13665e /test
parentbf4efc1953467907ae7d75d5f3ef3cd41505ee24 (diff)
downloadpodman-b2414b580e236e011d60028e645ab41096035ee3.tar.gz
podman-b2414b580e236e011d60028e645ab41096035ee3.tar.bz2
podman-b2414b580e236e011d60028e645ab41096035ee3.zip
generate systemd
Implement `podman generate systemd` for Podman v2 and enable associated tests. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/generate_systemd_test.go1
-rw-r--r--test/system/250-generate-systemd.bats2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/generate_systemd_test.go b/test/e2e/generate_systemd_test.go
index 2901e7ac6..abfca4db9 100644
--- a/test/e2e/generate_systemd_test.go
+++ b/test/e2e/generate_systemd_test.go
@@ -18,7 +18,6 @@ var _ = Describe("Podman generate systemd", func() {
)
BeforeEach(func() {
- Skip(v2fail)
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
diff --git a/test/system/250-generate-systemd.bats b/test/system/250-generate-systemd.bats
index 80199af5f..6155d6ace 100644
--- a/test/system/250-generate-systemd.bats
+++ b/test/system/250-generate-systemd.bats
@@ -10,6 +10,8 @@ SERVICE_NAME="podman_test_$(random_string)"
UNIT_DIR="$HOME/.config/systemd/user"
UNIT_FILE="$UNIT_DIR/$SERVICE_NAME.service"
+# FIXME: the must run as root (because of CI). It's also broken...
+
function setup() {
skip_if_not_systemd
skip_if_remote