summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/pull_run
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/pull_run')
-rwxr-xr-xtest/integration/targets/pull_run/runme.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/pull_run/runme.sh b/test/integration/targets/pull_run/runme.sh
new file mode 100755
index 0000000000..854698b2fc
--- /dev/null
+++ b/test/integration/targets/pull_run/runme.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -eux
+
+# http://unix.stackexchange.com/questions/30091/fix-or-alternative-for-mktemp-in-os-x
+MYTMPDIR=$(shell mktemp -d 2>/dev/null || mktemp -d -t 'ansible-testing-XXXXXXXXXX')
+trap 'rm -rf "${MYTMPDIR}"' EXIT
+
+ansible-pull -d "${MYTMPDIR}" -U https://github.com/ansible-test-robinro/pull-integration-test "$@" \
+ | grep MAGICKEYWORD