(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
+9 -1
View File
@@ -75,7 +75,15 @@ fn fish_is_offered_every_status() {
fn board() -> (assert_fs::TempDir, String, String) {
let temp = assert_fs::TempDir::new().unwrap();
let mut init = Command::cargo_bin(BIN_NAME).unwrap();
init.current_dir(temp.path()).arg("init").assert().success();
// 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.
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")
.assert()
.success();
let mut add = Command::cargo_bin(BIN_NAME).unwrap();
add.current_dir(temp.path())