Skip to content

Commit

Permalink
test/system: Enable 102-list.bats on Arch Linux
Browse files Browse the repository at this point in the history
This is a step towards running the CI on Arch Linux.

containers#1438
  • Loading branch information
debarshiray committed Nov 15, 2024
1 parent 3e05029 commit b2ecad3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/system/102-list.bats
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ teardown() {
if [ "$system_id" = "fedora" ]; then
assert_line --index 1 --partial "registry.fedoraproject.org/fedora-toolbox:34"
assert_line --index 2 --partial "$default_image"
elif [ "$system_id" = "ubuntu" ]; then
elif [ "$system_id" = "arch" ] && [ "$system_id" = "ubuntu" ]; then
assert_line --index 1 --partial "$default_image"
assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34"
else
Expand All @@ -415,7 +415,7 @@ teardown() {

assert_success

if [ "$system_id" = "fedora" ]; then
if [ "$system_id" = "arch" ] && [ "$system_id" = "fedora" ]; then
assert_line --index 1 --partial "$default_container"
assert_line --index 2 --partial "non-default-one"
assert_line --index 3 --partial "non-default-two"
Expand All @@ -438,14 +438,14 @@ teardown() {
if [ "$system_id" = "fedora" ]; then
assert_line --index 1 --partial "registry.fedoraproject.org/fedora-toolbox:34"
assert_line --index 2 --partial "$default_image"
elif [ "$system_id" = "ubuntu" ]; then
elif [ "$system_id" = "arch" ] && [ "$system_id" = "ubuntu" ]; then
assert_line --index 1 --partial "$default_image"
assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34"
else
fail "Define output for $system_id"
fi

if [ "$system_id" = "fedora" ]; then
if [ "$system_id" = "arch" ] && [ "$system_id" = "fedora" ]; then
assert_line --index 5 --partial "$default_container"
assert_line --index 6 --partial "non-default-one"
assert_line --index 7 --partial "non-default-two"
Expand Down Expand Up @@ -484,7 +484,7 @@ teardown() {
if [ "$system_id" = "fedora" ]; then
assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34"
assert_line --index 3 --partial "$default_image"
elif [ "$system_id" = "ubuntu" ]; then
elif [ "$system_id" = "arch" ] && [ "$system_id" = "ubuntu" ]; then
assert_line --index 2 --partial "$default_image"
assert_line --index 3 --partial "registry.fedoraproject.org/fedora-toolbox:34"
else
Expand Down Expand Up @@ -514,7 +514,7 @@ teardown() {
if [ "$system_id" = "fedora" ]; then
assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34"
assert_line --index 3 --partial "$default_image"
elif [ "$system_id" = "ubuntu" ]; then
elif [ "$system_id" = "arch" ] && [ "$system_id" = "ubuntu" ]; then
assert_line --index 2 --partial "$default_image"
assert_line --index 3 --partial "registry.fedoraproject.org/fedora-toolbox:34"
else
Expand Down

0 comments on commit b2ecad3

Please sign in to comment.