diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-07 05:30:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 05:30:26 -0400 |
commit | 29b13176a2f80728f5f8534e925d03f3c4ab51e3 (patch) | |
tree | 6b8f538784eb950917b7b1d94bf1e68bcbf0a3a6 /test/system | |
parent | 663ea964733f5d7ccef9b457b33e97ebdec79e70 (diff) | |
parent | 95a50a936ac58404ea9812b8ff2374b131b31a47 (diff) | |
download | podman-29b13176a2f80728f5f8534e925d03f3c4ab51e3.tar.gz podman-29b13176a2f80728f5f8534e925d03f3c4ab51e3.tar.bz2 podman-29b13176a2f80728f5f8534e925d03f3c4ab51e3.zip |
Merge pull request #10237 from edsantiago/ci_rootless_add_ubuntu
CI: run rootless tests under ubuntu
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/001-basic.bats | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 35107f0a0..5d44c373f 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -10,16 +10,18 @@ function setup() { : } -@test "podman --context emits reasonable output" { - run_podman 125 --context=swarm version - is "$output" "Error: Podman does not support swarm, the only --context value allowed is \"default\"" "--context=default or fail" - - run_podman --context=default version -} +#### DO NOT ADD ANY TESTS HERE! ADD NEW TESTS AT BOTTOM! @test "podman version emits reasonable output" { run_podman version + # FIXME FIXME FIXME: #10248: nasty message on Ubuntu cgroups v1, rootless + if [[ "$output" =~ "overlay test mount with multiple lowers failed" ]]; then + if is_rootless; then + lines=("${lines[@]:1}") + fi + fi + # First line of podman-remote is "Client:<blank>". # Just delete it (i.e. remove the first entry from the 'lines' array) if is_remote; then @@ -41,6 +43,17 @@ function setup() { } +@test "podman --context emits reasonable output" { + # All we care about here is that the command passes + run_podman --context=default version + + # This one must fail + run_podman 125 --context=swarm version + is "$output" \ + "Error: Podman does not support swarm, the only --context value allowed is \"default\"" \ + "--context=default or fail" +} + @test "podman can pull an image" { run_podman pull $IMAGE } |