Open wmmc88 opened 3 months ago
It looks like its panicking here due to error deleting the target/tests/<CRATE NAME>/macrotest000X
directory .
the unique names from COUNT
seem to handle multiple calls to expand
/expand_args
within a single binary, but this won't work for multiple test binaries. I skimmed thru trybuild
code and it seems like they avoid this by having a flock
on the directory
This is kind of a side effect of https://github.com/eupn/macrotest/pull/69.
That said, since the target directory is shared, it should not work to actually run macrotest in parallel anyway due to the cargo's mechanism.
File lock seems to be a reasonable approach here.
Cargo Nextest has a different test execution model where each test is compiled into a separate binary. This causes issues with macrotest- it seems that it assumes that each crate will contain at most one call to macrotest from a single binary.
This is reproducible from the tests within this repo:
Output: