tests: test_autoenv_add_to_env: create auth file parent dir (#59)

This is required when running single test files, e.g. only cwd.t.
This commit is contained in:
Daniel Hahler 2017-04-23 14:24:17 +02:00 committed by GitHub
parent dfb5648505
commit 41e0daa35f
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ fi
# Add file ($1), version ($2), and optional hash ($3) to authentication file.
test_autoenv_add_to_env() {
[[ -d ${AUTOENV_AUTH_FILE:h} ]] || mkdir -p ${AUTOENV_AUTH_FILE:h}
_autoenv_hash_pair $1 1 ${2:-} >>| $AUTOENV_AUTH_FILE
}