check for execution from releng/

This commit is contained in:
George Danchev
2011-07-13 11:24:32 +00:00
parent 0dee6a5bb5
commit 42fec11080
7 changed files with 44 additions and 6 deletions

View File

@ -5,9 +5,17 @@
set -e
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
# It is not a good idea to include inc/releng_getopts.inc with the
# master script as it calls the subordinate scripts and they include
# this file too, and we want to avoid sharing variable with subshells
if [ ! -f inc/releng_getopts.inc ]; then
not_in_releng_exit
fi
SELF=$(basename "$0")
GEN_DATA_DIR=releng_generated_data