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 10, 2018
1 parent bea28b6 commit c5122b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ 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"
sudo journalctl -t cc-runtime --since="${start_test}" --no-pager
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 --since="${start_test}" --no-pager
echo "<===============================================>"
fi

0 comments on commit c5122b0

Please sign in to comment.