summaryrefslogtreecommitdiff
path: root/test/e2e/libpod_suite_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-12 19:14:20 +0200
committerGitHub <noreply@github.com>2019-08-12 19:14:20 +0200
commitca7bae7f89bd1843ce47fca41403b99b8583168e (patch)
tree496d55497fbb3151ad54b8c1a3bbfa4408a9775d /test/e2e/libpod_suite_test.go
parent341f0bf66485c75db95f9e6355af1fb2f93f6005 (diff)
parent9f67cde9f855081cf113afefb72b8f38c1b4d338 (diff)
downloadpodman-ca7bae7f89bd1843ce47fca41403b99b8583168e.tar.gz
podman-ca7bae7f89bd1843ce47fca41403b99b8583168e.tar.bz2
podman-ca7bae7f89bd1843ce47fca41403b99b8583168e.zip
Merge pull request #3789 from giuseppe/cirrus-add-crun
cirrus: run tests with crun
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r--test/e2e/libpod_suite_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go
index 1df59dbe3..22cc14d6b 100644
--- a/test/e2e/libpod_suite_test.go
+++ b/test/e2e/libpod_suite_test.go
@@ -21,6 +21,13 @@ func SkipIfRootless() {
}
}
+func SkipIfNotRunc() {
+ runtime := os.Getenv("OCI_RUNTIME")
+ if runtime != "" && filepath.Base(runtime) != "runc" {
+ ginkgo.Skip("Not using runc as runtime")
+ }
+}
+
// Podman is the exec call to podman on the filesystem
func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration {
podmanSession := p.PodmanBase(args, false, false)