mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-24 13:50:26 -07:00
Fix tailing newline by not created it in the first place
This commit is contained in:
parent
a271a9bcd2
commit
42fe4baf18
3 changed files with 8 additions and 8 deletions
4
.github/workflows/ansible-test-plugins.yml
vendored
4
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -125,9 +125,9 @@ jobs:
|
|||
ansible-core-version: ${{ matrix.ansible }}
|
||||
pre-test-cmd: >-
|
||||
>&2 echo Setting db_engine_version to ${{ matrix.db_engine_version }}...;
|
||||
echo "${{ matrix.db_engine_version }}" > tests/integration/db_engine_version;
|
||||
echo -n "${{ matrix.db_engine_version }}" > tests/integration/db_engine_version;
|
||||
>&2 echo Setting Connector version to ${{ matrix.connector }}...;
|
||||
echo "${{ matrix.connector }}" > tests/integration/connector
|
||||
echo -n "${{ matrix.connector }}" > tests/integration/connector
|
||||
target-python-version: ${{ matrix.python }}
|
||||
testing-type: integration
|
||||
|
||||
|
|
4
Makefile
4
Makefile
|
@ -1,7 +1,7 @@
|
|||
.PHONY: test-integration
|
||||
test-integration:
|
||||
echo "mysql:8.0.22" > tests/integration/db_engine_version
|
||||
echo "pymysql==0.9.3" > tests/integration/connector
|
||||
echo -n "mysql:8.0.22" > tests/integration/db_engine_version
|
||||
echo -n "pymysql==0.9.3" > tests/integration/connector
|
||||
podman run \
|
||||
--detach \
|
||||
--name primary \
|
||||
|
|
|
@ -12,18 +12,18 @@
|
|||
{{ lookup(
|
||||
'file',
|
||||
'/root/ansible_collections/community/mysql/tests/integration/connector'
|
||||
) | trim }}
|
||||
) }}
|
||||
db_engine_version: >
|
||||
{{ lookup(
|
||||
'file',
|
||||
'/root/ansible_collections/community/mysql/tests/integration/db_engine_version'
|
||||
) | trim }}"
|
||||
) }}"
|
||||
|
||||
- name: "{{ role_name }} | Setvars | Set Fact using above facts"
|
||||
ansible.builtin.set_fact:
|
||||
connector_ver: "{{ connector_name.split('=')[2].strip() }}"
|
||||
db_engine: "{{ db_engine_version | split(':') | first }}"
|
||||
db_version: "{{ db_engine_version | split(':') | last }}"
|
||||
db_engine: "{{ db_engine_version.split(':')[0].strip() }}"
|
||||
db_version: "{{ db_engine_version.split(':')[1].strip() }}"
|
||||
mysql_command: >-
|
||||
mysql
|
||||
-h{{ gateway_addr }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue