config: add TestConfig
This commit is contained in:
parent
f92c9c6027
commit
e212e0b8b1
7 changed files with 175 additions and 6 deletions
|
|
@ -238,7 +238,7 @@ async fn start_compositor3(state: Rc<State>, test_future: Option<TestFuture>) {
|
|||
fn load_config(state: &Rc<State>, #[allow(unused_variables)] for_test: bool) -> ConfigProxy {
|
||||
#[cfg(feature = "it")]
|
||||
if for_test {
|
||||
// todo
|
||||
return ConfigProxy::for_test(state);
|
||||
}
|
||||
match ConfigProxy::from_config_dir(state) {
|
||||
Ok(c) => c,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue