Fix git tests.
This commit is contained in:
parent
0cd22c730c
commit
9adfb2d6f5
1 changed files with 7 additions and 7 deletions
|
@ -214,7 +214,7 @@
|
|||
git:
|
||||
repo: "{{ repo_format1 }}"
|
||||
dest: "{{ checkout_dir }}"
|
||||
version: 2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b
|
||||
version: 5473e343e33255f2da0b160f53135c56921d875c
|
||||
ignore_errors: true
|
||||
register: git_result
|
||||
|
||||
|
@ -228,7 +228,7 @@
|
|||
git:
|
||||
repo: https://github.com/ansible/ansible-examples.git
|
||||
dest: '{{ checkout_dir }}'
|
||||
version: 2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b
|
||||
version: 5473e343e33255f2da0b160f53135c56921d875c
|
||||
refspec: refs/pull/7/merge
|
||||
|
||||
- name: check HEAD after update with refspec
|
||||
|
@ -237,7 +237,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- 'git_result.stdout == "2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b"'
|
||||
- 'git_result.stdout == "5473e343e33255f2da0b160f53135c56921d875c"'
|
||||
|
||||
# try out combination of refspec and depth
|
||||
- name: clear checkout_dir
|
||||
|
@ -247,7 +247,7 @@
|
|||
git:
|
||||
repo: https://github.com/ansible/ansible-examples.git
|
||||
dest: '{{ checkout_dir }}'
|
||||
version: 2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b
|
||||
version: 5473e343e33255f2da0b160f53135c56921d875c
|
||||
refspec: refs/pull/7/merge
|
||||
depth: 1
|
||||
|
||||
|
@ -257,7 +257,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- 'git_result.stdout == "2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b"'
|
||||
- 'git_result.stdout == "5473e343e33255f2da0b160f53135c56921d875c"'
|
||||
|
||||
- name: try to access other commit
|
||||
shell: git checkout 0ce1096
|
||||
|
@ -280,7 +280,7 @@
|
|||
git:
|
||||
repo: https://github.com/ansible/ansible-examples.git
|
||||
dest: '{{ checkout_dir }}'
|
||||
version: 2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b
|
||||
version: 5473e343e33255f2da0b160f53135c56921d875c
|
||||
refspec: refs/pull/7/merge
|
||||
|
||||
- name: check HEAD after update with refspec
|
||||
|
@ -289,7 +289,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- 'git_result.stdout == "2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b"'
|
||||
- 'git_result.stdout == "5473e343e33255f2da0b160f53135c56921d875c"'
|
||||
|
||||
#
|
||||
# Submodule tests
|
||||
|
|
Loading…
Reference in a new issue