summaryrefslogtreecommitdiff
path: root/automated/bin/setenv.sh
blob: a11f6aa83f12761d9f4da4b96f451c80a4c5094a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -eu

REPO_PATH="$(pwd)"
export REPO_PATH
echo "REPO_PATH: ${REPO_PATH}"

if ! [ -d "${REPO_PATH}/automated/bin" ]; then
    echo "ERROR: Please execute the below command from 'test-definitions' DIR"
    echo "    . ./automated/bin/setenv.sh"
    exit 1
fi

PATH="${REPO_PATH}/automated/bin:${PATH}"
export PATH
echo "BIN_PATH: ${PATH}"