Skip to content

Commit 57f6bbe

Browse files
committed
properly split command
1 parent 7eb01b4 commit 57f6bbe

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/svd2rust-regress/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ wildmatch = "2.1.1"
2020
which = "5.0.0"
2121
tracing = "0.1.40"
2222
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "fmt"] }
23+
shell-words = "1.1"

ci/svd2rust-regress/src/svd_test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ impl TestCase {
259259
let mut svd2rust_bin = Command::new(svd2rust_bin_path);
260260
if let Some(command) = command {
261261
if !command.is_empty() {
262-
svd2rust_bin.arg(command);
262+
svd2rust_bin.args(
263+
shell_words::split(command).context("unable to split command into args")?,
264+
);
263265
}
264266
}
265267
svd2rust_bin

0 commit comments

Comments
 (0)