Open befeleme opened 2 weeks ago
Note that Fedora and CentOS have different dist-git URLs, so this won't allow us to fork the tests from Fedora without adjustments, but at least the tests would fail (searching for c10s in Fedora distgit) instead of running something bad.
Ideally, if this is solved, the next step would be to be able to set url
to something like {distgit pkgname}
.
I want to run tmt tests on a component python-sphinx-theme-alabaster for c10s branch of the centos stream dist git repository. The tests are stored in another component - python-sphinx. I can use
url:
in thediscover
step to pull them. This doesn't work yet, because the default branch is used (in my case: c9s). I want to set the branch to the correct one. I can useref:
for that and specify the value toc10s
. That works. When c11s is created, I will have to manually change all the files. When I want to run the tests in different Fedoras, I'll have to manually specify the branches. I would like to have it possible to defineref
as "a value of the branch I am currently on", so if I open a PR toc10s
, tmt will look for the corresponding value in a remote repository.The docs say:
The thing is, I don't really want to rely on the "default" branch, because that one can be switched to a different one in time.
Does there exist a solution for this? Would you be willing to add one?