summaryrefslogtreecommitdiff
path: root/contrib/cirrus/logcollector.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-09 14:33:14 -0700
committerGitHub <noreply@github.com>2019-10-09 14:33:14 -0700
commit2bf184aa019387de560bec60636ae5152f8b54ce (patch)
tree0a5ece519d71390567f5b139c03fb3b2b47cc339 /contrib/cirrus/logcollector.sh
parentf61e399a66c716cc6b18659e6b21208007d48848 (diff)
parentffe726ed6438237be6c108f2ba0da10944617153 (diff)
downloadpodman-2bf184aa019387de560bec60636ae5152f8b54ce.tar.gz
podman-2bf184aa019387de560bec60636ae5152f8b54ce.tar.bz2
podman-2bf184aa019387de560bec60636ae5152f8b54ce.zip
Merge pull request #4222 from cevich/collect_varlink_log
Cirrus: Produce and collect varlink output
Diffstat (limited to 'contrib/cirrus/logcollector.sh')
-rwxr-xr-xcontrib/cirrus/logcollector.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/cirrus/logcollector.sh b/contrib/cirrus/logcollector.sh
index b0a644f8c..17f5eb099 100755
--- a/contrib/cirrus/logcollector.sh
+++ b/contrib/cirrus/logcollector.sh
@@ -4,7 +4,7 @@ set -e
source $(dirname $0)/lib.sh
-req_env_var CIRRUS_WORKING_DIR OS_RELEASE_ID
+req_env_var CIRRUS_WORKING_DIR OS_RELEASE_ID TEST_REMOTE_CLIENT
# Assume there are other log collection commands to follow - Don't
# let one break another that may be useful, but also keep any
@@ -32,6 +32,15 @@ case $1 in
df) showrun df -lhTx tmpfs ;;
ginkgo) showrun cat $CIRRUS_WORKING_DIR/test/e2e/ginkgo-node-*.log ;;
journal) showrun journalctl -b ;;
+ varlink)
+ if [[ "$TEST_REMOTE_CLIENT" == "true" ]]
+ then
+ echo "(Trailing 100 lines of $VARLINK_LOG)"
+ showrun tail -100 $VARLINK_LOG
+ else
+ die 0 "\$TEST_REMOTE_CLIENT is not 'true': $TEST_REMOTE_CLIENT"
+ fi
+ ;;
packages)
# These names are common to Fedora and Ubuntu
PKG_NAMES=(\