In testing do not use actual user dir
- if --dr is specified and if a test directory is defined, use it instead of the user directory. This avoids side effect on tests and also ensure we do not write in actual user dir while testing. This is specially useful for macros
related to #21706
Edited by Nicolas Vuaille