Skip to content

Commit

Permalink
Find mullvad packages in new cache directory
Browse files Browse the repository at this point in the history
Instead of assuming that the needed app packages (mullvad installation +
GUI tests) are present inside of the test framework folder,
`test-manager` now creates a directory in `dirs::cache_dir` on the host system.
  • Loading branch information
MarkusPettersson98 committed Oct 16, 2023
1 parent 64ebf19 commit 08f483c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test-manager/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ async fn find_app(
let mut app = app.to_owned();
app.make_ascii_lowercase();

// Search for package in ./packages/
let mut dir = fs::read_dir("./packages/")
let packages_dir = dirs::cache_dir()
.context("Could not find cache directory")?
.join("mullvad-test")
.join("packages");
fs::create_dir_all(&packages_dir).await?;
let mut dir = fs::read_dir(packages_dir)
.await
.context("Failed to list packages")?;

Expand Down

0 comments on commit 08f483c

Please sign in to comment.