Skip to content

Commit 09cfec2

Browse files
committed
Merge branch 'upgrade-serialport'
2 parents 0a2eb25 + 43f31c7 commit 09cfec2

File tree

5 files changed

+45
-58
lines changed

5 files changed

+45
-58
lines changed

.github/workflows/cargo-audit.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ jobs:
3333
# Ignored audit issues. This list should be kept short, and effort should be
3434
# put into removing items from the list.
3535
# RUSTSEC-2023-0057,RUSTSEC-2023-0058 - Unsoundness in `inventory`.
36-
# RUSTSEC-2020-0168 - `mach` is unmaintained. Can be fixed by upgrading `serialport`.
37-
ignore: RUSTSEC-2023-0057,RUSTSEC-2023-0058,RUSTSEC-2020-0168
36+
ignore: RUSTSEC-2023-0057,RUSTSEC-2023-0058

test/Cargo.lock

+32-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ rust_2018_idioms = "deny"
1919
[workspace.lints.clippy]
2020
unused_async = "deny"
2121

22-
[patch.crates-io]
23-
serialport = { git = "https://github.com/mullvad/serialport-rs", rev = "1401c9d39e4a89685e3506a7160869b2c8e9ceb0" }
24-
2522
[workspace.dependencies]
2623
futures = "0.3"
2724
tokio = { version = "1.8", features = ["macros", "rt", "process", "time", "fs", "io-util", "rt-multi-thread"] }

test/test-manager/src/run_tests.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ use std::time::Duration;
1515
use test_rpc::logging::Output;
1616
use test_rpc::{mullvad_daemon::MullvadClientVersion, ServiceClient};
1717

18-
const BAUD: u32 = 115200;
18+
/// The baud rate of the serial connection between the test manager and the test runner.
19+
/// There is a known issue with setting a baud rate at all or macOS, and the workaround
20+
/// is to set it to zero: https://github.com/serialport/serialport-rs/pull/58
21+
///
22+
/// Keep this constant in sync with `test-runner/src/main.rs`
23+
const BAUD: u32 = if cfg!(target_os = "macos") { 0 } else { 115200 };
1924

2025
pub async fn run(
2126
config: tests::config::TestConfig,

test/test-runner/src/main.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,12 @@ fn get_pipe_status() -> ServiceStatus {
299299
}
300300
}
301301

302-
const BAUD: u32 = 115200;
302+
/// The baud rate of the serial connection between the test manager and the test runner.
303+
/// There is a known issue with setting a baud rate at all or macOS, and the workaround
304+
/// is to set it to zero: https://github.com/serialport/serialport-rs/pull/58
305+
///
306+
/// Keep this constant in sync with `test-manager/src/run_tests.rs`
307+
const BAUD: u32 = if cfg!(target_os = "macos") { 0 } else { 115200 };
303308

304309
#[derive(err_derive::Error, Debug)]
305310
pub enum Error {

0 commit comments

Comments
 (0)