Skip to content

Commit

Permalink
Merge pull request #633 from henrywang/e2e_packit
Browse files Browse the repository at this point in the history
test: rename tmt test log folder and rename tmt plan name
  • Loading branch information
henrywang authored Jun 24, 2024
2 parents f15f650 + a5630ca commit b73b5f7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ jobs:
targets:
- fedora-40-x86_64
- fedora-40-aarch64
tmt_plan: /build
tmt_plan: /integration-build
skip_build: true
identifier: tmt-integration-test
identifier: integration-test
6 changes: 4 additions & 2 deletions plans/build.fmf → plans/integration-build.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ execute:
discover:
how: fmf
test:
- /build-tmt/build-image
- /build-image
finish:
how: shell
script:
- cp -r /var/tmp/tmt/run-001 $TMT_PLAN_DATA
# move tmt test log to tmt plan data folder
# the tmt integration test log can be archived in testing farm artifacts
- cp -r /var/tmp/tmt/run-001 $TMT_PLAN_DATA/test-tmt-log
File renamed without changes.
3 changes: 3 additions & 0 deletions tests-integration/build-image.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summary: build bootc and build qcow2 image
test: cd .. && dnf -y builddep bootc && make test-tmt
duration: 30m
4 changes: 0 additions & 4 deletions tests-integration/build-tmt.fmf

This file was deleted.

2 changes: 1 addition & 1 deletion xtask/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn man2markdown(sh: &Shell) -> Result<()> {
#[context("test-integration")]
fn test_tmt(sh: &Shell) -> Result<()> {
cmd!(sh, "cargo run -p tests-integration run-vm prepare-tmt").run()?;
cmd!(sh, "tmt run plans -n integration").run()?;
cmd!(sh, "tmt run plans -n integration-run").run()?;
Ok(())
}

Expand Down

0 comments on commit b73b5f7

Please sign in to comment.