Just found that you can pass the argument `--profile` to specify a profile dir for tests. Does it mitigate your issue?
Bug 2003137 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Just found that you can pass the argument `--profile` to specify a profile dir for tests. The default behavior of mozregression will create a new temp profile every time. Why do you still get a lot file created in ~/.mozilla/firefox?