issue #291: missing env_wrapper.sh test script.

This commit is contained in:
David Wilson 2018-07-18 00:05:04 +01:00
parent b5e7e97c62
commit 1a74938ee0
1 changed files with 12 additions and 0 deletions

12
tests/data/env_wrapper.sh Executable file
View File

@ -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