# tmt reproducer | https://docs.testing-farm.io/Testing%20Farm/0.1/test-results.html#_reproducer
git clone --recurse-submodules https://github.com/teemtee/tmt testcode
git -C testcode config --add remote.origin.fetch +refs/merge-requests/*:refs/remotes/origin/merge-requests/*
git -C testcode config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pull/*
git -C testcode fetch https://github.com/teemtee/tmt ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096:gluetool/ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096
git -C testcode checkout --no-recurse-submodules gluetool/ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096
git -C testcode submodule update --init --recursive
git -C testcode fetch https://github.com/teemtee/tmt 5793f160ea6a83eb7aa78b1dd7135b1303c18ef4:gluetool/5793f160ea6a83eb7aa78b1dd7135b1303c18ef4
git -C testcode merge --no-edit gluetool/5793f160ea6a83eb7aa78b1dd7135b1303c18ef4
cd testcode
curl -o guest-setup-0.sh -L https://artifacts.dev.testing-farm.io/7ee920ba-c471-4371-b3ba-ca9f08ece5f9/guest-setup-9dd05cf4-b7a4-42a2-bba2-26284aa4c3ef/artifact-installation-9dd05cf4-b7a4-42a2-bba2-26284aa4c3ef/sut_install_commands.sh
curl -o guest-setup-1.sh -L https://artifacts.dev.testing-farm.io/7ee920ba-c471-4371-b3ba-ca9f08ece5f9/guest-setup-9dd05cf4-b7a4-42a2-bba2-26284aa4c3ef/artifact-installation-9dd05cf4-b7a4-42a2-bba2-26284aa4c3ef/sut_install_commands.sh
curl -LO https://artifacts.dev.testing-farm.io/7ee920ba-c471-4371-b3ba-ca9f08ece5f9/git-ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096jv4l6ug6/tmt-environment-plans-features-steps-prepare.yaml
tmt --root . -c arch=x86_64 -c distro=fedora-rawhide -c initiator=packit -c trigger=commit run --until provision --verbose -e @tmt-environment-plans-features-steps-prepare.yaml provision --how virtual --image Fedora-Rawhide plan --name ^/plans/features/steps/prepare$
tmt --root . run --last login < guest-setup-0.sh
tmt --root . run --last --since prepare
tmt --root . run --last login < guest-setup-1.sh
tmt --root . run --last --since prepare