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

Commit

Permalink
Merge pull request #1494 from chavafg/topic/dm-crio-testing
Browse files Browse the repository at this point in the history
cri-o: tests: use devicemapper on all ubuntu versions
  • Loading branch information
GabyCT authored Apr 25, 2019
2 parents 24f7039 + 77a8cd5 commit 6c113f1
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 6c113f1

Please sign in to comment.