Skip to content

Commit

Permalink
Add mullvad-test config directory
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 13, 2023
1 parent 3980079 commit 09a4caa
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
39 changes: 39 additions & 0 deletions test/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 test/test-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ clap = { version = "4.1", features = ["derive"] }
async-tempfile = "0.2"
async-trait = { workspace = true }
uuid = "1.3"
dirs = "5.0.1"

serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
7 changes: 6 additions & 1 deletion test/test-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ async fn main() -> Result<()> {
#[cfg(target_os = "linux")]
container::relaunch_with_rootlesskit(args.get_vnc_port()).await;

let mut config = config::ConfigFile::load_or_default("config.json")
let config_path = dirs::config_dir()
.unwrap()
.join("mullvad-test")
.join("config.json");

let mut config = config::ConfigFile::load_or_default(config_path)
.await
.context("Failed to load config")?;
match args.cmd {
Expand Down

0 comments on commit 09a4caa

Please sign in to comment.