Skip to content

Commit

Permalink
test: add alias to run cargo t --workspace on a single thread (#1337)
Browse files Browse the repository at this point in the history
Sometimes running cargo t --workspace can result in a lock-up of the machine it is being run on, which is a big problem when working remotely via ssh, since the only way to get your machine back to a working state is a soft-reset. This commit provides a convenient alias to run workspace tests on a single thread.
  • Loading branch information
mhasel authored Oct 17, 2024
1 parent 83c5b03 commit 441618f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xtask = "run --release --package xtask --"
metrics = "run --release --package xtask -- metrics"
metrics-sql = "run --release --package xtask --features=sql -- metrics"
tw1 = "test --workspace -- --test-threads=1"

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
Expand Down

0 comments on commit 441618f

Please sign in to comment.