From 7b52eab5aede1062f63a61ca985b5f4bd3fb8b9b Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Oct 12 2017 15:19:27 +0000 Subject: Run python3-test in standard test interface Adds test suitable for Fedora CI [1]. Executes all tests from python3-test package (unittests included in cpython). Although they were run during the %check phases of rpm build, since build system and "real" system differ, we aim to detect issues not present in the build system. For execution see the wiki ([1]) or previous PR [2]. [1] https://fedoraproject.org/wiki/CI [2] https://src.fedoraproject.org/rpms/python3/pull-request/14 --- diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..36e554a --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,22 @@ +--- +- hosts: localhost + vars: + - artifacts: ./artifacts + - subjects: + - python3-test + tags: + - classic + - container + roles: + - role: standard-test-rpm + tasks: + - name: Run bundled tests + block: + - name: Execute tests + shell: python3 -m test.regrtest -wW &> /tmp/python3-tests.log + always: + - name: Pull out the artifacts + fetch: + dest: "{{ artifacts }}/" + src: "/tmp/python3-tests.log" + flat: yes