summaryrefslogtreecommitdiff
path: root/contrib/cirrus/container_test.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-01 03:37:15 +0200
committerGitHub <noreply@github.com>2019-06-01 03:37:15 +0200
commit2068919e9bfcc8c45a8f73fa89a197f1923afa3f (patch)
tree8b47c2ceaa346fd42397fb52ec02dc4dab97a6ef /contrib/cirrus/container_test.sh
parent503ed5fe0319c6a673f3ad43b00aacf2199bcf74 (diff)
parentd1c44ea8560c59d843f8550005050a5e09e2b062 (diff)
downloadpodman-2068919e9bfcc8c45a8f73fa89a197f1923afa3f.tar.gz
podman-2068919e9bfcc8c45a8f73fa89a197f1923afa3f.tar.bz2
podman-2068919e9bfcc8c45a8f73fa89a197f1923afa3f.zip
Merge pull request #3236 from baude/testsplitrootless
split rootless local and remote testing
Diffstat (limited to 'contrib/cirrus/container_test.sh')
-rw-r--r--contrib/cirrus/container_test.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/contrib/cirrus/container_test.sh b/contrib/cirrus/container_test.sh
index 6bd925f17..a0542f4a0 100644
--- a/contrib/cirrus/container_test.sh
+++ b/contrib/cirrus/container_test.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-set -xeuo pipefail
+set -xeo pipefail
export GOPATH=/var/tmp/go
export PATH=$HOME/gopath/bin:$PATH:$GOPATH/bin
@@ -32,10 +32,10 @@ integrationtest=0
unittest=0
validate=0
options=0
-noremote=0
+remote=0
install_tools_made=0
-while getopts "bitnuv" opt; do
+while getopts "bituv" opt; do
case "$opt" in
b) build=1
options=1
@@ -46,9 +46,6 @@ while getopts "bitnuv" opt; do
t) integrationtest=1
options=1
;;
- n) noremote=1
- options=1
- ;;
u) unittest=1
options=1
;;
@@ -58,6 +55,12 @@ while getopts "bitnuv" opt; do
esac
done
+# The TEST_REMOTE_CLIENT environment variable decides whether
+# to test varlinke
+if [[ "$TEST_REMOTE_CLIENT" == "true" ]]; then
+ remote=1
+fi
+
# If no options are passed, do everything
if [ $options -eq 0 ]; then
build=1
@@ -131,7 +134,7 @@ if [ $integrationtest -eq 1 ]; then
make TAGS="${TAGS}" test-binaries
make varlink_generate
make ginkgo $INTEGRATION_TEST_ENVS
- if [ $noremote -eq 0 ]; then
+ if [ $remote -eq 1 ]; then
make ginkgo-remote $INTEGRATION_TEST_ENVS
fi
fi