diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2024-02-01 13:17:26 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2024-02-01 13:17:26 +0100 |
| commit | 09cfec2d2f72762fdd04a26b839321eadb2a71c1 (patch) | |
| tree | 1752ab7128504fac4f0709a3c3da6c23619af087 /test/test-runner/src | |
| parent | 0a2eb2538dc3f681081df4b47c9f9cb08137be36 (diff) | |
| parent | 43f31c73d2d0ca8086ad8bec9de36318d0ac1dc2 (diff) | |
| download | mullvadvpn-09cfec2d2f72762fdd04a26b839321eadb2a71c1.tar.xz mullvadvpn-09cfec2d2f72762fdd04a26b839321eadb2a71c1.zip | |
Merge branch 'upgrade-serialport'
Diffstat (limited to 'test/test-runner/src')
| -rw-r--r-- | test/test-runner/src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test-runner/src/main.rs b/test/test-runner/src/main.rs index d7ace9d15a..1c2c301b27 100644 --- a/test/test-runner/src/main.rs +++ b/test/test-runner/src/main.rs @@ -299,7 +299,12 @@ fn get_pipe_status() -> ServiceStatus { } } -const BAUD: u32 = 115200; +/// The baud rate of the serial connection between the test manager and the test runner. +/// There is a known issue with setting a baud rate at all or macOS, and the workaround +/// is to set it to zero: https://github.com/serialport/serialport-rs/pull/58 +/// +/// Keep this constant in sync with `test-manager/src/run_tests.rs` +const BAUD: u32 = if cfg!(target_os = "macos") { 0 } else { 115200 }; #[derive(err_derive::Error, Debug)] pub enum Error { |
