Skip to content

Commit

Permalink
fix(campfire): strip guest/rust from package paths
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Sep 1, 2023
1 parent b43827e commit 72db7f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions campfire/src/golden_images/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,16 @@ pub async fn main(gi: &GoldenImages) -> anyhow::Result<()> {

// Get tests.
let tests = if let Mode::Update = gi.mode {
// The base path is stripped as `get_all_packages` returns
// paths relative to the current working directory.
get_all_packages(true, false)?
.into_iter()
.map(|p| {
p.strip_prefix(TEST_BASE_PATH)
.map(|p| p.to_owned())
.unwrap_or(p)
})
.collect_vec()
} else {
tokio::spawn(parse_tests_from_manifest()).await??
};
Expand Down

0 comments on commit 72db7f7

Please sign in to comment.