diff options
author | Chris Evich <cevich@redhat.com> | 2019-03-06 11:47:24 -0500 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-05-21 08:44:01 -0400 |
commit | 191a08ae43fcb2b846e6118073f852e4eb875d5d (patch) | |
tree | fa56a5e08a17ed8cc3a43b282ed19b2e5ed82825 /contrib/cirrus/setup_and_run_rootless.sh | |
parent | 84c6f7c55da4a1f4d6968c5f8bd8a8553ab5d55e (diff) | |
download | podman-191a08ae43fcb2b846e6118073f852e4eb875d5d.tar.gz podman-191a08ae43fcb2b846e6118073f852e4eb875d5d.tar.bz2 podman-191a08ae43fcb2b846e6118073f852e4eb875d5d.zip |
Cirrus: Support testing of VM cache-image changes
Previously, it was quite difficult to affect changes to VM cache images
without lots of manual work. This commit adds a new optional testing
task which mirrors the official-image build task which only runs on
master. In contrast, the new task may be run at any time in a PR, but
including a magic phrase in the PR description.
Update documentation to describe the new task and inform on it's usage.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/setup_and_run_rootless.sh')
-rwxr-xr-x | contrib/cirrus/setup_and_run_rootless.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/cirrus/setup_and_run_rootless.sh b/contrib/cirrus/setup_and_run_rootless.sh new file mode 100755 index 000000000..7ca34a6ac --- /dev/null +++ b/contrib/cirrus/setup_and_run_rootless.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -ex + +source $(dirname $0)/lib.sh + +req_env_var " +CIRRUS_WORKING_DIR $CIRRUS_WORKING_DIR +GOSRC $GOSRC +SCRIPT_BASE $SCRIPT_BASE +ROOTLESS_USER $ROOTLESS_USER +ROOTLESS_UID $ROOTLESS_UID +ROOTLESS_GID $ROOTLESS_GID +" + +if run_rootless +then + die 86 "Error: Expected rootless env. vars not set or empty" +fi + +cd $GOSRC +setup_rootless + +ssh $ROOTLESS_USER@localhost \ + -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=no \ + $CIRRUS_WORKING_DIR/$SCRIPT_BASE/rootless_test.sh |