Skip to content

Commit 441618f

Browse files
authored
test: add alias to run cargo t --workspace on a single thread (#1337)
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.
1 parent 83c5b03 commit 441618f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xtask = "run --release --package xtask --"
44
metrics = "run --release --package xtask -- metrics"
55
metrics-sql = "run --release --package xtask --features=sql -- metrics"
6+
tw1 = "test --workspace -- --test-threads=1"
67

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

0 commit comments

Comments
 (0)