You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ansible-test-no-tty/runme.sh

14 lines
377 B
Bash

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