From c4782e273c38cc61e14cea7e1e236e77448995c3 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Thu, 23 Jul 2020 13:59:51 +0200 Subject: [PATCH] update test.yml make sure git is installed in the VM before extracting the source --- tests/tests.yml | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/tests/tests.yml b/tests/tests.yml index 46066eb..5fde476 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -1,33 +1,14 @@ --- -# Run parted's tests by rebuilding the rpm and running the %check section - hosts: localhost - vars: - package: parted - tenv_workdir: "/tmp/workdir" tags: - - classic - tasks: - - name: Copy the spec file over to the workdir - copy: - src: "{{ playbook_dir }}/../{{ package }}.spec" - dest: "{{ tenv_workdir }}/" - -- hosts: localhost - vars: - tenv_workdir: "/tmp/workdir" + - classic roles: - - role: standard-test-source - tags: - - always - - - role: standard-test-basic - tags: - - classic - - required_packages: - - dnf - - rpm-build - - tests: - - simple: - run: "./run_tests.sh {{ tenv_workdir }}" + - role: standard-test-source + required_packages: + - dnf + - rpm-build + - git + - role: standard-test-basic + tests: + - simple: + run: "./run_tests.sh {{ tenv_workdir }}"