mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
* Relocate update-ignore.py for easier re-use. * Add script to ease collection testing. * Skip ignore rewrite if file does not exist. * Add integration test for the shebang sanity test. * Fix ansible-test-no-tty integration test. Previously the test only verified a TTY was not used if a TTY already existed. This prevented the test from verifying behavior when run in CI. Now the test creates a PTY before invoking ansible-test. * Clean up ansible-test-docker integration test.
14 lines
377 B
Bash
Executable File
14 lines
377 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Verify that ansible-test runs integration tests without a TTY.
|
|
|
|
source ../collection/setup.sh
|
|
|
|
set -x
|
|
|
|
if ./run-with-pty.py tests/integration/targets/no-tty/assert-no-tty.py > /dev/null; then
|
|
echo "PTY assertion did not fail. Either PTY creation failed or PTY detection is broken."
|
|
exit 1
|
|
fi
|
|
|
|
./run-with-pty.py ansible-test integration --color "${@}"
|