File: custom_binary_producing_junk.yml

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (38 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- name: integration/runner/custom_binary_producing_junk.yml
  hosts: test-targets
  gather_facts: true
  tasks:
    - block:
      - custom_binary_producing_junk_Darwin:
          foo: true
        with_sequence: start=1 end={{end|default(1)}}
        ignore_errors: true
        register: out_darwin
      - set_fact: out={{out_darwin}}
      when: ansible_system == "Darwin"

    - block:
      - custom_binary_producing_junk_Linux:
          foo: true
        with_sequence: start=1 end={{end|default(1)}}
        ignore_errors: true
        register: out_linux
      - set_fact: out={{out_linux}}
      when: ansible_system == "Linux"
  tags:
    - custom_binary_producing_junk


- hosts: test-targets
  tasks:
    - assert:
        that:
        - out.failed
        - out.results[0].failed
        - out.results[0].msg.startswith('MODULE FAILURE')
          or out.results[0].msg.startswith('Module result deserialization failed')
        - out.results[0].rc == 0
        fail_msg: |
          out={{ out }}
  tags:
    - custom_binary_producing_junk