[packit] 0.12.0 upstream release

Upstream tag: 0.12.0
Upstream commit: 1f184858

Signed-off-by: Packit <hello@packit.dev>
This commit is contained in:
Packit 2023-01-06 13:52:38 +00:00
commit 3453cd5ad0
7 changed files with 49 additions and 10 deletions

View file

@ -5,10 +5,25 @@ from pathlib import Path
import fmf
# Set discover of specfile tests to a fixed commit
tree_root = Path.cwd().absolute()
node = fmf.Tree(tree_root).find("/plans")
with node as data:
tree = fmf.Tree(tree_root)
main_node = tree.find("/plans")
with main_node as data:
data["discover"]["url"] = "https://github.com/packit/specfile.git"
data["discover"]["ref"] = (
subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip()
)
# Set discover of packit integration tests to the current main
packit_node = tree.find("/plans/packit-integration")
with packit_node as data:
data["discover"]["ref"] = (
subprocess.check_output(
["git", "ls-remote", "https://github.com/packit/packit", "main"]
)
.decode()
.strip()
.split()[0]
)