Skip to content

Commit

Permalink
Fixes test set-up
Browse files Browse the repository at this point in the history
Use package-directory-list instead of copying the files.
  • Loading branch information
Andreas Politz committed Nov 11, 2015
1 parent 8a21d9e commit e2f2eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

(unless (file-directory-p cask-elpa)
(error "Do `cask install' first"))
(copy-directory (format "../.cask/%s/elpa" emacs-version)
(file-name-directory package-user-dir))
(add-to-list 'package-directory-list
(format "../.cask/%s/elpa" emacs-version))
(add-hook 'kill-emacs-hook (lambda nil
(when (file-exists-p package-user-dir)
(delete-directory package-user-dir t))))
Expand Down

0 comments on commit e2f2eb6

Please sign in to comment.