Skip to content

Commit 9c4ac4f

Browse files
committed
use major-minor instead of major.minor in tox testenv name
See linux-system-roles/tox-lsr@41091bb
1 parent 7fb02a1 commit 9c4ac4f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

blog/_posts/2025-06-25-role-bootc-support.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ making a particular role compatible with image mode builds, please follow these
110110
[integration test setup](https://github.com/linux-system-roles/tox-lsr?tab=readme-ov-file#integration-test-setup) and also read the following sections about running QEMU and container tests.
111111
E.g. running a QEMU test should work:
112112
```sh
113-
tox -e qemu-ansible-core-2.16 -- --image-name centos-9 --log-level=debug -- tests/tests_default.yml
113+
tox -e qemu-ansible-core-2-20 -- --image-name centos-9 --log-level=debug -- tests/tests_default.yml
114114
```
115115

116116
1. Do an initial run of the default or other test during a bootc container build, to get a first impression:
117117
```sh
118-
LSR_CONTAINER_PROFILE=false LSR_CONTAINER_PRETTY=false tox -e container-ansible-core-2.16 -- --image-name centos-9-bootc tests/tests_default.yml
118+
LSR_CONTAINER_PROFILE=false LSR_CONTAINER_PRETTY=false tox -e container-ansible-core-2-20 -- --image-name centos-9-bootc tests/tests_default.yml
119119
```
120120

121121
1. The most common causes of failures are `service_facts:` which just simply
@@ -159,7 +159,7 @@ making a particular role compatible with image mode builds, please follow these
159159
containers and temp files from the previous run:
160160

161161
```sh
162-
buildah rm --all; rm -rf /tmp/runcontainer.*; LSR_DEBUG=1 LSR_CONTAINER_PROFILE=false LSR_CONTAINER_PRETTY=false tox -e container-ansible-core-2.16 -- --image-name centos-9-bootc tests/tests_default.yml
162+
buildah rm --all; rm -rf /tmp/runcontainer.*; LSR_DEBUG=1 LSR_CONTAINER_PROFILE=false LSR_CONTAINER_PRETTY=false tox -e container-ansible-core-2-20 -- --image-name centos-9-bootc tests/tests_default.yml
163163
```
164164

165165
You can enter the container and debug with `buildah run tests_default bash`.

contribute.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ another file, copy that file to `~/.config/extra-images.json`.
7575
Assuming you are in a git clone of a role repo which has a `tox.ini` file - you can use e.g.
7676

7777
```
78-
tox -e qemu-ansible-core-2.16 -- --image-name centos-9 tests/tests_default.yml
78+
tox -e qemu-ansible-core-2-20 -- --image-name centos-9 tests/tests_default.yml
7979
```
8080

8181
NOTE: This will download a qcow image to `~/.cache/linux-system-roles`. The
@@ -180,7 +180,7 @@ gh repo fork
180180
- Check the Ansible files are correctly formatted using `tox -e ansible-lint`.
181181

182182
- Check your integration tests e.g.
183-
`tox -e qemu-ansible-core-2.16 -- --image-name centos-9 tests/tests_mynewtest.yml`
183+
`tox -e qemu-ansible-core-2-20 -- --image-name centos-9 tests/tests_mynewtest.yml`
184184

185185
4. Once the work is ready, create a git commit. Use `git commit -s` to create
186186
a signed commit. See below `Write a good commit message`.
@@ -346,7 +346,7 @@ https://issues.redhat.com/browse/RHEL-529
346346
For debugging, use `tox` with `qemu` (see above), and use the `--debug`
347347
flag.
348348
```
349-
tox -e qemu-ansible-core-2.16 -- --image-name centos-9 --debug tests/tests_mytest.yml
349+
tox -e qemu-ansible-core-2-20 -- --image-name centos-9 --debug tests/tests_mytest.yml
350350
grep ssh artifacts/default_provisioners.log | tail -1
351351
```
352352
Then use that `ssh` command to log into the VM.

0 commit comments

Comments
 (0)