aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/command.rs
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2023-04-15 22:19:13 +0200
committerdatdenkikniet <jcdra1@gmail.com>2023-04-16 13:08:46 +0200
commit1c84ccf6e4169b4b45f0e22e709e4265a10324a5 (patch)
treed192d3915f52b9168de9c140dca3c459dc18e5fc /xtask/src/command.rs
parentd838286de679a1ac35ea79999816418cd02b7259 (diff)
Fix running of tests
Diffstat (limited to 'xtask/src/command.rs')
-rw-r--r--xtask/src/command.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/xtask/src/command.rs b/xtask/src/command.rs
index a45cb8a..187a3dd 100644
--- a/xtask/src/command.rs
+++ b/xtask/src/command.rs
@@ -593,6 +593,11 @@ impl<'a> CargoCommand<'a> {
if let Some(cargoarg) = cargoarg {
args.extend_from_slice(&[cargoarg]);
}
+
+ // We need to be in the `rtic` directory to pick up
+ // the correct .cargo/config.toml file
+ args.extend_from_slice(&["-Z", "unstable-options", "-C", "rtic"]);
+
args.extend_from_slice(&[
self.command(),
"--example",
@@ -856,7 +861,7 @@ pub fn handle_results(globals: &Globals, results: Vec<FinalRunResult>) -> Result
if globals.verbose > 0 {
info!("✅ Success: {cmd}{path}\n {}", cmd.as_cmd_string());
} else {
- info!("✅ Success:{cmd}{path}");
+ info!("✅ Success: {cmd}{path}");
}
});