teemtee / tmt

Test Management Tool
MIT License
76 stars 112 forks source link

Re-use "become" image to fix sudo-related trouble in /tests/provision/user #2892

Closed happz closed 2 weeks ago

happz commented 2 weeks ago

The test started to fail because /usr/bin/flock is not preinstalled and the default Fedora image does not come with password-less sudo enabled out of the box. Therefore we use the image we build for /tests/provision/become, give a nice name other images will follow Soon(TM), and use it in a test that exercises a non-privileged access.

Pull Request Checklist

happz commented 2 weeks ago

/packit test

psss commented 2 weeks ago

Seems that /tests/unit/with-system-packages/basic fails with:

No rule to make target 'image-tests-fedora-become', needed by 'images-unit-tests'.
happz commented 2 weeks ago

Seems that /tests/unit/with-system-packages/basic fails with:

No rule to make target 'image-tests-fedora-become', needed by 'images-unit-tests'.

Fixed just now. At the last moment, I renamed the target, hoping to use a path-like name rather than encoding hierarchy with dashes...