#108 standard-tests-scripts: Implement required_packages
Closed 5 years ago by astepano. Opened 6 years ago by martinpitt.
martinpitt/standard-test-roles standard-requirements  into  master

@@ -14,4 +14,10 @@ 

  

   * tests: An array of scripts to run

   * files: A list of files or directories needed by the scripts

+  * required_packages: A list of prerequisite packages required by

+      the tests. Please note that for Atomic Host, additional

+      packages will be installed using the rpm-ostree command which

+      is affecting the test subject (it's similar as rebuilding an

+      rpm package to be tested) so this should be used with caution

+      and only when necessary.

  

@@ -2,7 +2,7 @@ 

  - name: Install testing requirements

    package: name={{ item }} state=present

    with_items:

-    - rsync

+    - "{{ required_packages }}"

    when: ansible_pkg_mgr != 'unknown'

  

  - name: Copy test scripts to target

@@ -1,3 +1,4 @@ 

  ---

  tests: []

  files: []

+ required_packages: []

Replace the hardcoded rsync package with required_packages from the
test YAML.

pretty please pagure-ci rebuild

I propose to stop development on this role and use standard-test-basic instead of it. Basic role should provide the same functionality.

Indeed, thanks for pointing out -basic. This didn't come up at the Brno hackfest (maybe -basic didn't exist yet back then?). I moved Cockpit's tests to basic, so feel free to close this one.

Pull-Request has been closed by astepano

5 years ago