Tests that run Arti shouldn't use default configuration or directories
Some of our tests work by running Arti as an application. We need to make sure that all of these tests override the default configuration path and storage directories used by arti
.
To override the default configuration path, use a different configuration file by passing "-c [path/to/file.toml]" on the command line. We should override the default configuration path because the developer might have some settings in their own arti.toml
file that would interfere with the operation of the test.
To override the default directories, just make sure that we specify at least one configuration file that contains a non-default [storage]
section. We should override the default storage paths because we don't want to contaminate the developer's own cache and state path with (say) all the relays from a chutney network.