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

Commit

Permalink
test: get openshift runtime logs
Browse files Browse the repository at this point in the history
Get logs when running openshift
Fixes: #32

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Jan 9, 2018
1 parent bea28b6 commit d438294
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ if [ "$ID" == "ubuntu" ] && [ "$VERSION_ID" == "17.04" ]; then
export CRIO_STORAGE_DRIVER_OPTS="--storage-driver=devicemapper"
fi

start_test=$(date '+%Y-%m-%d %H:%M:%S')
echo "<===============================================>"
echo "DEBUG: Logs from make check"
sudo -E PATH="$PATH" bash -c "make check"
echo "<===============================================>"

# Currently, Openshift tests only work on Fedora.
# We should delete this condition, when it works for Ubuntu.
if [ "$ID" == fedora ]; then
start_test=$(date '+%Y-%m-%d %H:%M:%S')
sudo -E PATH="$PATH" bash -c "make openshift"
echo "<===============================================>"
echo "DEBUG: Logs from openshift tests"
sudo journalctl -t cc-runtime -f --since="${start_test}"
echo "<===============================================>"
fi

0 comments on commit d438294

Please sign in to comment.