Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: rename tmt test log folder and rename tmt plan name #633

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading