(c6a61b4) Resolve a board through a pointer file and a shared boards repo, and bump to 0.33.0
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user