Miloš Prchlík
Miloš Prchlík
> @happz, @mcasquer, seems we have a bunch of tests failing: > > ``` > /tests/execute/reboot/out-of-sessionwith > /tests/provision/becomewith > /tests/provision/container/alpinewith > ``` > > And seems all of those seems...
> /tests/provision/become This one's easy: as an unprivileged user, you cannot create `/var/tmp/tmt/pid` directory: ``` /var/tmp/tmt/run-011 warn: User is feeling safe. Found 1 plan. /test/root discover how: shell order: 50...
> /tests/provision/container/alpine Test checks for `bash` not being installed on guest. `GuestFacts._execute()` looks for a substring in command stderr, `f'executable file `{tmt.utils.DEFAULT_SHELL}` not found' in exc.stderr:`, but this shell script...
> /tests/execute/reboot/out-of-sessionwith This one fails because of incorrect pidfile root in `tmt-reboot` and `tmt-reboot-core`. Pidfile root was not exposed, so they were using the old one. Can we apply the...
> > This one fails because of incorrect pidfile root in `tmt-reboot` and `tmt-reboot-core`. Pidfile root was not exposed, so they were using the old one. Can we apply the...
> > ``` > > # stderr (1 lines) > > # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Error: crun: executable file `/bin/bash` not found in $PATH: No such file or directory: OCI...
> > This one's easy: as an unprivileged user, you cannot create `/var/tmp/tmt/pid` directory: > > Correct me if I'm wrong, but adding sudo to the tmt commands would be...
@mcasquer I'm afraid running test cases - `tmt --context provisiontest=$PROVISION_HOW run -rvvv plan --name /test/root` - with `sudo` will hide the problem: tmt, when told to use a less-privileged account...
@mcasquer my mistake: drop the `self.become` part of the condition, it must apply every time user is not a superuser: ```diff diff --git a/tmt/steps/provision/__init__.py b/tmt/steps/provision/__init__.py index 907d17dc..7dcda9d3 100644 --- a/tmt/steps/provision/__init__.py...
Changing the subject to speak about `tmt try` - tmt as the main command does not accept environment, `tmt run` does, and `tmt try` should to. It may make sense...