From c5122b040b0ca49f40f59218be831619288b0e6c Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 9 Jan 2018 14:32:26 -0600 Subject: [PATCH] test: get openshift runtime logs Get logs when running openshift Fixes: #32 Signed-off-by: Jose Carlos Venegas Munoz --- .ci/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.ci/run.sh b/.ci/run.sh index 86f3e4a4b..6406ef017 100755 --- a/.ci/run.sh +++ b/.ci/run.sh @@ -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 +