1
0
Fork 0
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:
Toshio Kuratomi 2014-10-28 19:09:32 -04:00
parent 82e8d677d9
commit 050d17295d

View file

@ -188,7 +188,6 @@
file: state=absent path={{ checkout_dir }} file: state=absent path={{ checkout_dir }}
- name: Test that clone with recursive retrieves submodules - name: Test that clone with recursive retrieves submodules
git: git:
repo: '{{ repo_submodules }}' 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 - name: Test that update without recursive does not change submodules
command: 'git config --replace-all remote.origin.url {{ repo_submodules_newer }}' command: 'git config --replace-all remote.origin.url {{ repo_submodules_newer }}'
args: args: