Skip to content

Commit

Permalink
tmt: Remove cached testcloud image before each test
Browse files Browse the repository at this point in the history
This is required for the bootc install tests that use a custom image.
Otherwise, the cached image will be used instead of the image built from
the bootc provision plugin.

Signed-off-by: Chris Kyrouac <[email protected]>
  • Loading branch information
ckyrouac committed Sep 18, 2024
1 parent 26e73f8 commit 355810f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtask/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ fn test_tmt(sh: &Shell) -> Result<()> {
println!("Discovered plans: {all_plan_files:?}");

cmd!(sh, "cargo run -p tests-integration run-vm prepare-tmt").run()?;
// cc https://pagure.io/testcloud/pull-request/174
cmd!(sh, "rm -vf /var/tmp/tmt/testcloud/images/disk.qcow2").run()?;

for (_prio, name) in all_plan_files {
// cc https://pagure.io/testcloud/pull-request/174
cmd!(sh, "rm -vf /var/tmp/tmt/testcloud/images/disk.qcow2").run()?;
let verbose_enabled = std::env::var("TMT_VERBOSE")
.ok()
.and_then(|s| s.parse::<u32>().ok())
Expand Down

0 comments on commit 355810f

Please sign in to comment.