mirror of
https://github.com/zebrajr/ansible.git
synced 2025-12-06 12:19:53 +01:00
fix urls in additional ansible-doc test (#85988)
This commit is contained in:
parent
83c79240ec
commit
c02f59ca3a
|
|
@ -121,7 +121,7 @@ done
|
||||||
|
|
||||||
echo "testing role text output"
|
echo "testing role text output"
|
||||||
# we use sed to strip the role path from the first line
|
# we use sed to strip the role path from the first line
|
||||||
current_role_out="$(ansible-doc -t role -r ./roles test_role1 | sed '1 s/\(^> ROLE: \*test_role1\*\).*(.*)$/\1/')"
|
current_role_out="$(ansible-doc -t role -r ./roles test_role1 | sed '1 s/\(^> ROLE: \*test_role1\*\).*(.*)$/\1/' | python fix-urls.py)"
|
||||||
expected_role_out="$(sed '1 s/\(^> ROLE: \*test_role1\*\).*(.*)$/\1/' fakerole.output)"
|
expected_role_out="$(sed '1 s/\(^> ROLE: \*test_role1\*\).*(.*)$/\1/' fakerole.output)"
|
||||||
test "$current_role_out" == "$expected_role_out"
|
test "$current_role_out" == "$expected_role_out"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user