|
|
|
@ -9,7 +9,7 @@ echo "testing for stdio deadlock on forked workers (10s timeout)..."
|
|
|
|
# Redirect stdout to /dev/null since it's full of non-printable garbage we don't want to display unless it failed
|
|
|
|
# Redirect stdout to /dev/null since it's full of non-printable garbage we don't want to display unless it failed
|
|
|
|
ANSIBLE_CALLBACKS_ENABLED=spewstdio SPEWSTDIO_ENABLED=1 python run-with-pty.py ../test_utils/scripts/timeout.py -- 10 ansible-playbook -i hosts -f 5 test.yml > stdout.txt && RC=$? || RC=$?
|
|
|
|
ANSIBLE_CALLBACKS_ENABLED=spewstdio SPEWSTDIO_ENABLED=1 python run-with-pty.py ../test_utils/scripts/timeout.py -- 10 ansible-playbook -i hosts -f 5 test.yml > stdout.txt && RC=$? || RC=$?
|
|
|
|
|
|
|
|
|
|
|
|
if [ $RC != 0 ]; then
|
|
|
|
if [ "${RC}" != 0 ]; then
|
|
|
|
echo "failed; likely stdout deadlock. dumping raw output (may be very large)"
|
|
|
|
echo "failed; likely stdout deadlock. dumping raw output (may be very large)"
|
|
|
|
cat stdout.txt
|
|
|
|
cat stdout.txt
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
|