forked from toolshed/abra
test: test arguments, notes, local tag lookup
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
setup_suite(){
|
||||
if [[ -z "${TEST_SERVER}" ]]; then
|
||||
echo 'set $TEST_SERVER before running the test suite' >&3
|
||||
if [[ -z "${ABRA_DIR}" ]]; then
|
||||
echo 'set $ABRA_DIR before running the test suite' >&3
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "${ABRA_DIR}" ]]; then
|
||||
echo 'set $ABRA_DIR before running the test suite' >&3
|
||||
if [[ -z "${TEST_SERVER}" ]]; then
|
||||
echo 'set $TEST_SERVER before running the test suite' >&3
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -36,6 +36,11 @@ setup_suite(){
|
||||
}
|
||||
|
||||
teardown_suite(){
|
||||
if [[ -z "${ABRA_DIR}" ]]; then
|
||||
echo 'set $ABRA_DIR before running the test suite' >&3
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -d "$ABRA_DIR" ]]; then
|
||||
rm -rf "$ABRA_DIR"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user