Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

test:Change test order until swarm + openshift issue is fixed. #833

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@

set -e
source /etc/os-release
start_test="$(date '+%Y-%m-%d %H:%M:%S')"
last_test="${start_test}"

function cleanup {
if (( "$?" != 0 )); then
echo "DEBUG: Logs from all test "
sudo journalctl -t cc-runtime --since="${start_test}" --no-pager
if [ "${start_test}" != "${last_test}" ]; then
echo "DEBUG: Logs from last test"
sudo journalctl -t cc-runtime --since="${last_test}" --no-pager
fi
fi
}

trap cleanup EXIT

if [ "$ID" == "ubuntu" ] && [ "$VERSION_ID" == "17.04" ]; then
export CRIO_STORAGE_DRIVER_OPTS="--storage-driver=devicemapper"
Expand All @@ -26,5 +41,11 @@ sudo -E PATH="$PATH" bash -c "make check"
# Currently, Openshift tests only work on Fedora.
# We should delete this condition, when it works for Ubuntu.
if [ "$ID" == fedora ]; then
last_test=$(date '+%Y-%m-%d %H:%M:%S')
sudo -E PATH="$PATH" bash -c "make openshift"
fi

#FIXME: Running swarm before openshift breaks cc-runtime list
# see https://github.com/clearcontainers/runtime/issues/902
last_test=$(date '+%Y-%m-%d %H:%M:%S')
sudo -E PATH="$PATH" bash -c "make swarm"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ swarm:
conformance:
bats conformance/posixfs/fstest.bats

check: functional crio integration swarm conformance
check: functional crio integration conformance

all: functional checkcommits integration

Expand Down