(c6a61b4) Resolve a board through a pointer file and a shared boards repo, and bump to 0.33.0

This commit is contained in:
Ansho Rei
2026-09-01 17:41:05 +02:00
parent 3892afe819
commit f877e6dbf2
13 changed files with 1200 additions and 32 deletions
+11 -1
View File
@@ -247,7 +247,17 @@ fn nothing_is_created_without_a_title() {
fn init_creates_the_campaigns_directory() {
let temp = TempDir::new().unwrap();
let out = run(&temp, &["init"]);
// Isolated HOME and XDG so `init` cannot decide on a real machine's boards config:
// the board has to be local no matter whose machine runs the suite.
let mut init = Command::cargo_bin(BIN_NAME).unwrap();
let out = init
.current_dir(temp.path())
.env("HOME", temp.path())
.env("XDG_CONFIG_HOME", temp.path().join("config"))
.env("XDG_DATA_HOME", temp.path().join("data"))
.arg("init")
.output()
.unwrap();
assert!(out.status.success(), "{}", stderr(&out));
assert!(temp.child(".worklane").child("campaigns").path().is_dir());