mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove test case that wasn't reported as something git should do
This commit is contained in:
parent
82e8d677d9
commit
050d17295d
1 changed files with 0 additions and 27 deletions
|
@ -188,7 +188,6 @@
|
|||
file: state=absent path={{ checkout_dir }}
|
||||
|
||||
|
||||
|
||||
- name: Test that clone with recursive retrieves submodules
|
||||
git:
|
||||
repo: '{{ repo_submodules }}'
|
||||
|
@ -206,32 +205,6 @@
|
|||
|
||||
|
||||
|
||||
- name: Check that modules will be updated if main repo is not
|
||||
command: git config --replace-all remote.origin.url {{ repo_submodule1_newer }}
|
||||
args:
|
||||
chdir: "{{ checkout_dir }}/submodule1"
|
||||
|
||||
- git:
|
||||
repo: '{{ repo_submodules }}'
|
||||
dest: '{{ checkout_dir }}'
|
||||
update: yes
|
||||
recursive: yes
|
||||
track_submodules: yes
|
||||
|
||||
- command: 'ls -1a {{ checkout_dir }}/submodule1'
|
||||
register: submodule1
|
||||
|
||||
- debug: var=submodule1
|
||||
- assert:
|
||||
that: '{{ submodule1.stdout_lines|length }} == 5'
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
|
||||
- name: Restore checkout to prior state
|
||||
file: state=absent path={{ checkout_dir }}
|
||||
- command: 'cp -pr {{ checkout_dir }}.bak {{ checkout_dir }}'
|
||||
|
||||
- name: Test that update without recursive does not change submodules
|
||||
command: 'git config --replace-all remote.origin.url {{ repo_submodules_newer }}'
|
||||
args:
|
||||
|
|
Loading…
Reference in a new issue