index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-07-29 14:57:59 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-08-21 11:00:18 +1000 |
commit | 9263cc58747a1b2ed5a345e5b35014b44decd444 (patch) | |
tree | da45a0af15eea5ef4718929439e78f23a852da9d /test/scripts/parseopts_test.sh | |
parent | 1152052b3e27e3252f6685a369fce8a426710015 (diff) |
-rwxr-xr-x | test/scripts/parseopts_test.sh | 7 |
diff --git a/test/scripts/parseopts_test.sh b/test/scripts/parseopts_test.sh index 8df1908b..5ff4bc55 100755 --- a/test/scripts/parseopts_test.sh +++ b/test/scripts/parseopts_test.sh @@ -3,11 +3,12 @@ declare -i testcount=0 pass=0 fail=0 total=25 # source the library function -if [[ -z $1 || ! -f $1 ]]; then - printf "Bail out! path to parseopts library not provided or does not exist\n" +lib=${1:-${PMTEST_SCRIPTLIB_DIR}parseopts.sh} +if [[ -z $lib || ! -f $lib ]]; then + printf "Bail out! parseopts library ($lib) could not be located\n" exit 1 fi -. "$1" +. "$lib" if ! type -t parseopts >/dev/null; then printf 'Bail out! parseopts function not found\n' |