Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 1 | - when: init_saved_state |
| 2 | block: |
| 3 | - name: Run tempest cleanup init-saved-state |
| 4 | become: yes |
| 5 | become_user: tempest |
Martin Kopec | a857880 | 2020-04-07 08:19:14 +0000 | [diff] [blame] | 6 | command: tox -evenv-tempest -- tempest cleanup --init-saved-state --debug |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 7 | args: |
| 8 | chdir: "{{ devstack_base_dir }}/tempest" |
| 9 | |
| 10 | - name: Cat saved_state.json |
| 11 | command: cat "{{ devstack_base_dir }}/tempest/saved_state.json" |
| 12 | |
| 13 | - when: dry_run |
| 14 | block: |
| 15 | - name: Run tempest cleanup dry-run |
| 16 | become: yes |
| 17 | become_user: tempest |
Martin Kopec | a857880 | 2020-04-07 08:19:14 +0000 | [diff] [blame] | 18 | command: tox -evenv-tempest -- tempest cleanup --dry-run --debug |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 19 | args: |
| 20 | chdir: "{{ devstack_base_dir }}/tempest" |
| 21 | |
| 22 | - name: Cat dry_run.json |
| 23 | command: cat "{{ devstack_base_dir }}/tempest/dry_run.json" |
| 24 | |
| 25 | - name: Run tempest cleanup |
| 26 | become: yes |
| 27 | become_user: tempest |
Martin Kopec | a857880 | 2020-04-07 08:19:14 +0000 | [diff] [blame] | 28 | command: tox -evenv-tempest -- tempest cleanup --debug |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 29 | args: |
| 30 | chdir: "{{ devstack_base_dir }}/tempest" |
| 31 | when: not dry_run and not init_saved_state |