Skip to content

Commit

Permalink
properly split command
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Feb 3, 2024
1 parent a718ec8 commit 282f58c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ci/svd2rust-regress/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ wildmatch = "2.1.1"
which = "5.0.0"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "fmt"] }
shell-words = "1.1"
4 changes: 3 additions & 1 deletion ci/svd2rust-regress/src/svd_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ impl TestCase {
let mut svd2rust_bin = Command::new(svd2rust_bin_path);
if let Some(command) = command {
if !command.is_empty() {
svd2rust_bin.arg(command);
svd2rust_bin.args(
shell_words::split(command).context("unable to split command into args")?,
);
}
}
svd2rust_bin
Expand Down

0 comments on commit 282f58c

Please sign in to comment.