www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8f2356f7c325a1a75aeb7842ff05a7abc01124b6
parent 7eaa57562f3930bb94586d363e533b38fb247d78
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 27 May 2015 21:42:37 -0400

Delete test directory on exit when using -c

Diffstat:
Mtest/runtests.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/runtests.sh b/test/runtests.sh @@ -101,6 +101,9 @@ if [ "$SKIP_BUNDLED" = true ]; then FX_ARGS="$FX_ARGS -ZoteroSkipBundledFiles" fi +# Clean up on exit +trap "{ rm -rf \"$PROFILE\"; }" EXIT + makePath FX_PROFILE "$PROFILE" MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \ -chrome chrome://zotero-unit/content/runtests.html -test "$TESTS" $FX_ARGS @@ -109,6 +112,4 @@ MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \ test -e "$PROFILE/success" STATUS=$? -# Clean up -rm -rf "$PROFILE" exit $STATUS \ No newline at end of file