From 1a74938ee09252fbc48ae4cf201985349e9c8bf8 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 18 Jul 2018 00:05:04 +0100 Subject: [PATCH] issue #291: missing env_wrapper.sh test script. --- tests/data/env_wrapper.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/data/env_wrapper.sh diff --git a/tests/data/env_wrapper.sh b/tests/data/env_wrapper.sh new file mode 100755 index 00000000..afb523f0 --- /dev/null +++ b/tests/data/env_wrapper.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# This script exists to test the behavior of Stream.python_path being set to a +# list. It sets an environmnt variable that we can detect, then executes any +# arguments passed to it. +export EXECUTED_VIA_ENV_WRAPPER=1 +if [ "${1:0:1}" == "-" ]; then + exec "$PYTHON" "$@" +else + export ENV_WRAPPER_FIRST_ARG="$1" + shift + exec "$@" +fi