File: make_tmp_path__double.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 (23 lines) | stat: -rw-r--r-- 800 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
# issue #554: double calls to make_tmp_path() fail with assertion error. Ensure
# they succeed and are cleaned up correctly.

- name: integration/action/make_tmp_path__double.yml
  hosts: test-targets
  tasks:
  - mitogen_action_script:
      script: |
        result['t1'] = self._make_tmp_path()
        result['t2'] = self._make_tmp_path()
        assert result['t1'] != result['t2']
        assert self._remote_file_exists(result['t1'])
        assert self._remote_file_exists(result['t2'])
        self._remove_tmp_path(result['t1'])
        self._remove_tmp_path(result['t2'])
    register: out

  - mitogen_action_script:
      script: |
        assert not self._remote_file_exists("{{ out.t1 }}")
        assert not self._remote_file_exists("{{ out.t2 }}")
  tags:
    - make_tmp_path_double