nushell/crates/nu-test-support/src
Reilly Wood a4952bc029
Put a lock around cargo build invocations for plugin tests (#8333)
I think this _might_ fix the issues we've been seeing with plugin tests.

In a nutshell, the plugin tests run `cargo build` to ensure that plugins
have been built:
f6ca62384e/crates/nu-test-support/src/commands.rs (L6)

This PR adds a mutex to ensure that we're never running `cargo build`
concurrently. It also uses an atomic bool to signal when plugins have
already been built, so we can avoid invoking `cargo build` multiple
times unnecessarily.

I can't be certain yet, but I'm guessing the macOS CI problems we've
been seeing come from plugin tests clobbering each other (something
like: test 1 builds the `foo` plugin, then test2 invokes `cargo build`
again and deletes the `foo` plugin from disk).
2023-03-05 19:04:12 -08:00
..
playground Fix: dst error on cp command (#7895) 2023-02-01 21:48:21 +01:00
commands.rs Put a lock around cargo build invocations for plugin tests (#8333) 2023-03-05 19:04:12 -08:00
fs.rs Move some from xxx commands to plugin (#7942) 2023-02-13 12:42:08 +00:00
lib.rs Use nu-path correctly in nu! test macro to make dev-dependency transitive (#7488) 2022-12-15 18:53:26 +01:00
locale_override.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
macros.rs Put a lock around cargo build invocations for plugin tests (#8333) 2023-03-05 19:04:12 -08:00
playground.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00