Function: ert-with-temp-directory

ert-with-temp-directory is a macro without a source file.

Signature

(ert-with-temp-directory NAME &rest BODY)

Documentation

[Compatibility macro for ert-with-temp-directory, defined in Emacs 29.1. See
(compat) Emacs 29.1' for more details.]

Bind NAME to the name of a new temporary directory and evaluate BODY. Delete the temporary directory after BODY exits normally or non-locally.

NAME is bound to the directory name, not the directory file name. (In other words, it will end with the directory delimiter; on Unix-like systems, it will end with "/".)

The same keyword arguments are supported as in ert-with-temp-file (which see), except for :text.