# tmt reproducer | https://docs.testing-farm.io/Testing%20Farm/0.1/test-results.html#_reproducer
git clone --recurse-submodules https://github.com/containers/buildah 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/containers/buildah 135b7f6e74f6b1444918ebc16cf3735b1f062ab8:gluetool/135b7f6e74f6b1444918ebc16cf3735b1f062ab8
git -C testcode checkout --no-recurse-submodules gluetool/135b7f6e74f6b1444918ebc16cf3735b1f062ab8
git -C testcode submodule update --init --recursive
git -C testcode fetch https://github.com/containers/buildah a9d8cb64e04ab0d7c7ba7a55110b7098d3d9e577:gluetool/a9d8cb64e04ab0d7c7ba7a55110b7098d3d9e577
git -C testcode merge --no-edit gluetool/a9d8cb64e04ab0d7c7ba7a55110b7098d3d9e577
cd testcode
curl -o guest-setup-0.sh -L https://artifacts.dev.testing-farm.io/16dd66c8-1f70-4263-ba6b-c7a71805b2ad/guest-setup-94b4ab29-1e27-4772-a54d-9db21c14e2c2/artifact-installation-94b4ab29-1e27-4772-a54d-9db21c14e2c2/sut_install_commands.sh
curl -o guest-setup-1.sh -L https://artifacts.dev.testing-farm.io/16dd66c8-1f70-4263-ba6b-c7a71805b2ad/guest-setup-94b4ab29-1e27-4772-a54d-9db21c14e2c2/artifact-installation-94b4ab29-1e27-4772-a54d-9db21c14e2c2/sut_install_commands.sh
curl -LO https://artifacts.dev.testing-farm.io/16dd66c8-1f70-4263-ba6b-c7a71805b2ad/git-135b7f6e74f6b1444918ebc16cf3735b1f062ab8lqh2y95a/tmt-environment-plans.yaml
tmt --root . -c arch=x86_64 -c distro=fedora-42 -c initiator=packit -c trigger=commit run --until provision --verbose -e @tmt-environment-plans.yaml provision --how virtual --image Fedora-42 plan --name ^/plans$
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