Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
cri-o: tests: use devicemapper on all ubuntu versions
Browse files Browse the repository at this point in the history
Do not restrict ubuntu version to run with devicemapper.
We have now moved most of our jobs to ubuntu 18.04
and we were not testing with devicemapper.
With this change, we will test cri-o with devicemapper
on all ubuntu versions.

Fixes: #1493.

Signed-off-by: Salvador Fuentes <[email protected]>
(cherry picked from commit 77a8cd5)
Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
  • Loading branch information
chavafg authored and jcvenegas committed May 2, 2019
1 parent f1e79cc commit 3f0c8e7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions integration/cri-o/cri-o.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ done

IFS=$OLD_IFS

# run CRI-O tests using devicemapper on ubuntu 16.04
MAJOR=$(echo "$VERSION_ID"|cut -d\. -f1)
if [ "$ID" == "ubuntu" ] && [ "$MAJOR" -eq 16 ]; then
# run CRI-O tests using devicemapper on ubuntu
if [ "$ID" == "ubuntu" ]; then
# Block device attached to the VM where we run the CI
# If the block device has a partition, cri-o will not be able to use it.
export LVM_DEVICE
Expand All @@ -72,13 +71,9 @@ if [ "$ID" == "ubuntu" ] && [ "$MAJOR" -eq 16 ]; then
export STORAGE_OPTIONS="$DM_STORAGE_OPTIONS"
fi

# But if on ubuntu 17.10 or newer, test using overlay
# On other distros or on ZUUL, use overlay.
# This will allow us to run tests with at least 2 different
# storage drivers.
if [ "$ID" == "ubuntu" ] && [ "$MAJOR" -ge 17 ]; then
export STORAGE_OPTIONS="$OVERLAY_STORAGE_OPTIONS"
fi

if [ "$ID" == "fedora" ] || [ "$ID" == "centos" ]; then
export STORAGE_OPTIONS="$OVERLAY_STORAGE_OPTIONS"
fi
Expand Down

0 comments on commit 3f0c8e7

Please sign in to comment.