mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 01:41:59 -04:00
platform: Split out DeviceConfig from PlatformConfig
This commit is contained in:
parent
d5d2d2c9a3
commit
e3ce1853e9
12 changed files with 269 additions and 179 deletions
|
@ -483,19 +483,11 @@ pub mod test {
|
|||
|
||||
sleep(Duration::from_millis(10)).await;
|
||||
|
||||
h.test.platform_config.replace(Some(PlatformConfig {
|
||||
factory_reset: None,
|
||||
update_bios: None,
|
||||
update_dock: None,
|
||||
storage: None,
|
||||
fan_control: Some(ServiceConfig::Systemd(String::from(
|
||||
"jupiter-fan-control.service",
|
||||
))),
|
||||
tdp_limit: None,
|
||||
gpu_clocks: None,
|
||||
battery_charge_limit: None,
|
||||
performance_profile: None,
|
||||
}));
|
||||
let mut platform_config = PlatformConfig::default();
|
||||
platform_config.fan_control = Some(ServiceConfig::Systemd(String::from(
|
||||
"jupiter-fan-control.service",
|
||||
)));
|
||||
h.test.platform_config.replace(Some(platform_config));
|
||||
|
||||
let fan_control = FanControl::new(connection);
|
||||
assert_eq!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue