Open
Description
Not sure how much is this supported but at least for the second command to be just login it is something tempting to do (and working if timed correctly)
Reproducer
tmt -ddd -vvv run -i bug provision -h virtual -i fedora login -c 'echo FIRST; sleep 1000' |& tee /tmp/first &
sleep 20
tmt -ddd -vvv run -i bug login -c 'echo SECOND' |& tee /tmp/second
On my machine, "second" tmt command (the one which is supposed to just login) generates ssh private key and continues to login but by doing so it locks out first command which waits asking for password until timeout happens.
Probably the only thing tmt should allow is 'standalone' login mode. All other attempts to use run from active workdir should be caught and denied unless user to removes the lock.