From 08f483c69cdff5f3627786ee5dd95e8165a1e68f Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Mon, 16 Oct 2023 10:39:26 +0200 Subject: [PATCH] Find mullvad packages in new cache directory 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. --- test/test-manager/src/package.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test-manager/src/package.rs b/test/test-manager/src/package.rs index 5a31d7c91204..3f35163e5e7d 100644 --- a/test/test-manager/src/package.rs +++ b/test/test-manager/src/package.rs @@ -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")?;