From 6463ba777d02d71bbf34f0f52063d0158895295e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 21 Aug 2017 17:05:42 +0200 Subject: [PATCH] tests: Install build dependencies before using rpm-build Before running rpm-build we need to bring in the build dependencies that the SRPM requires. --- tests/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tests.yml b/tests/tests.yml index d4a2567..f06355f 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -10,6 +10,7 @@ with_items: - koji - rpm-build + - dnf-plugins-core - name: provision VM qemu_provision: @@ -40,6 +41,9 @@ - set_fact: srpmpath: "{{tmpd.path}}/{{srpm.stdout}}" + - name: install build dependencies + command: dnf builddep -y {{srpmpath}} + - name: extract source rpm command: > rpmbuild --define "_srcrpmdir {{tmpd.path}}"