Files
Matt ClayandGitHub f70cc2fb7e Refactor ansible-test integration tests. (#78168)
* 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.
2022-06-29 17:34:32 -07:00

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 "${@}"