You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Better runtsts BATCH variable handling
This commit is contained in:
@@ -81,6 +81,6 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# About 265 tests in 14 minutes
|
# About 265 tests in 14 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_doctest.py]=1 # Fails on ppc64le
|
SKIP_TESTS[test_doctest.py]=1 # Fails on ppc64le
|
||||||
fi
|
fi
|
||||||
|
@@ -85,7 +85,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# About 305 unit-test files in about 12 minutes
|
# About 305 unit-test files in about 12 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
# Fails in crontab environment?
|
# Fails in crontab environment?
|
||||||
# Figure out what's up here
|
# Figure out what's up here
|
||||||
SKIP_TESTS[test_aifc.py]=1
|
SKIP_TESTS[test_aifc.py]=1
|
||||||
|
@@ -36,7 +36,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# 334 unit-test files in about 15 minutes
|
# 334 unit-test files in about 15 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
# Fails in crontab environment?
|
# Fails in crontab environment?
|
||||||
# Figure out what's up here
|
# Figure out what's up here
|
||||||
SKIP_TESTS[test_array.py]=1
|
SKIP_TESTS[test_array.py]=1
|
||||||
|
@@ -31,7 +31,7 @@ SKIP_TESTS=(
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
# Fails in crontab environment?
|
# Fails in crontab environment?
|
||||||
# Figure out what's up here
|
# Figure out what's up here
|
||||||
SKIP_TESTS[test_exception_variations.py]=1
|
SKIP_TESTS[test_exception_variations.py]=1
|
||||||
|
@@ -59,7 +59,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# About 300 unit-test files in about 20 minutes
|
# About 300 unit-test files in about 20 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_ftplib.py]=1 # Runs too long on POWER; over 15 seconds
|
SKIP_TESTS[test_ftplib.py]=1 # Runs too long on POWER; over 15 seconds
|
||||||
SKIP_TESTS[test_idle.py]=1 # No tk
|
SKIP_TESTS[test_idle.py]=1 # No tk
|
||||||
SKIP_TESTS[test_pep352.py]=1 # UnicodeDecodeError may be funny on weird environments
|
SKIP_TESTS[test_pep352.py]=1 # UnicodeDecodeError may be funny on weird environments
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
SKIP_TESTS=(
|
SKIP_TESTS=(
|
||||||
[test_buffer.py]=1 # FIXME: Works on c90ff51
|
[test_buffer.py]=1 # FIXME: Works on c90ff51
|
||||||
[test_platform.py]=1 # FIXME: Works on c90ff51
|
[test_platform.py]=1 # FIXME: Works on c90ff51
|
||||||
|
[test_pyclbr.py]=1 # FIXME: Works on c90ff51
|
||||||
|
|
||||||
[test___all__.py]=1 # it fails on its own
|
[test___all__.py]=1 # it fails on its own
|
||||||
[test_aifc.py]=1 #
|
[test_aifc.py]=1 #
|
||||||
@@ -124,7 +125,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# About 260 unit-test in about 16 minutes
|
# About 260 unit-test in about 16 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_asyncore.py]=1 # Ok, but takes more than 15 seconds to run
|
SKIP_TESTS[test_asyncore.py]=1 # Ok, but takes more than 15 seconds to run
|
||||||
SKIP_TESTS[test_bisect.py]=1
|
SKIP_TESTS[test_bisect.py]=1
|
||||||
SKIP_TESTS[test_compileall.py]=1 # Something weird on POWER
|
SKIP_TESTS[test_compileall.py]=1 # Something weird on POWER
|
||||||
@@ -132,10 +133,11 @@ if (( batch )) ; then
|
|||||||
SKIP_TESTS[test_distutils.py]=1
|
SKIP_TESTS[test_distutils.py]=1
|
||||||
|
|
||||||
SKIP_TESTS[test_exception_variations.py]=1
|
SKIP_TESTS[test_exception_variations.py]=1
|
||||||
|
SKIP_TESTS[test_ioctl.py]=1 # it fails on its own
|
||||||
SKIP_TESTS[test_poplib.py]=1 # May be a result of POWER installation
|
SKIP_TESTS[test_poplib.py]=1 # May be a result of POWER installation
|
||||||
|
|
||||||
SKIP_TESTS[test_quopri.py]=1
|
SKIP_TESTS[test_quopri.py]=1
|
||||||
SKIP_TESTS[test_ioctl.py]=1 # it fails on its own
|
SKIP_TESTS[test_sysconfig.py]=1 # POWER extension fails
|
||||||
SKIP_TESTS[test_tarfile.py]=1 # too long to run on POWER 15 secs
|
SKIP_TESTS[test_tarfile.py]=1 # too long to run on POWER 15 secs
|
||||||
SKIP_TESTS[test_venv.py]=1 # takes too long 11 seconds
|
SKIP_TESTS[test_venv.py]=1 # takes too long 11 seconds
|
||||||
fi
|
fi
|
||||||
|
@@ -202,7 +202,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# 236 unit-test files in about 13 minutes
|
# 236 unit-test files in about 13 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_codeccallbacks.py]=1
|
SKIP_TESTS[test_codeccallbacks.py]=1
|
||||||
SKIP_TESTS[test_complex.py]=1 # Something funky with POWER8
|
SKIP_TESTS[test_complex.py]=1 # Something funky with POWER8
|
||||||
|
|
||||||
|
@@ -132,7 +132,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# 306 unit-test files in about 19 minutes
|
# 306 unit-test files in about 19 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_capi.py]=1 # more than 15 secs to run on POWER
|
SKIP_TESTS[test_capi.py]=1 # more than 15 secs to run on POWER
|
||||||
SKIP_TESTS[test_dbm_gnu.py]=1 # fails on its own on POWER
|
SKIP_TESTS[test_dbm_gnu.py]=1 # fails on its own on POWER
|
||||||
SKIP_TESTS[test_distutils.py]=1
|
SKIP_TESTS[test_distutils.py]=1
|
||||||
|
@@ -329,7 +329,7 @@ SKIP_TESTS=(
|
|||||||
)
|
)
|
||||||
# 114 test files, Elapsed time about 7 minutes
|
# 114 test files, Elapsed time about 7 minutes
|
||||||
|
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
SKIP_TESTS[test_idle.py]=1 # Probably installation specific
|
SKIP_TESTS[test_idle.py]=1 # Probably installation specific
|
||||||
SKIP_TESTS[test_tix.py]=1 # fails on its own
|
SKIP_TESTS[test_tix.py]=1 # fails on its own
|
||||||
SKIP_TESTS[test_ttk_textonly.py]=1 # Installation dependent?
|
SKIP_TESTS[test_ttk_textonly.py]=1 # Installation dependent?
|
||||||
|
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
me=${BASH_SOURCE[0]}
|
me=${BASH_SOURCE[0]}
|
||||||
|
|
||||||
typeset -i batch=1
|
typeset -i BATCH=${BATCH:-0}
|
||||||
isatty=$(/usr/bin/tty 2>/dev/null)
|
if (( ! BATCH )) ; then
|
||||||
if [[ -n $isatty ]] && [[ "$isatty" != 'not a tty' ]] ; then
|
isatty=$(/usr/bin/tty 2>/dev/null)
|
||||||
batch=0
|
if [[ -n $isatty ]] && [[ "$isatty" != 'not a tty' ]] ; then
|
||||||
|
BATCH=0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -72,7 +74,7 @@ case $PYVERSION in
|
|||||||
[test_dis.py]=1 # We change line numbers - duh!
|
[test_dis.py]=1 # We change line numbers - duh!
|
||||||
[test_fileio.py]=1
|
[test_fileio.py]=1
|
||||||
)
|
)
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
# Fails in crontab environment?
|
# Fails in crontab environment?
|
||||||
# Figure out what's up here
|
# Figure out what's up here
|
||||||
SKIP_TESTS[test_exception_variations.py]=1
|
SKIP_TESTS[test_exception_variations.py]=1
|
||||||
@@ -85,7 +87,7 @@ case $PYVERSION in
|
|||||||
[test_dis.py]=1 # We change line numbers - duh!
|
[test_dis.py]=1 # We change line numbers - duh!
|
||||||
[test_fileio.py]=1
|
[test_fileio.py]=1
|
||||||
)
|
)
|
||||||
if (( batch )) ; then
|
if (( BATCH )) ; then
|
||||||
# Fails in crontab environment?
|
# Fails in crontab environment?
|
||||||
# Figure out what's up here
|
# Figure out what's up here
|
||||||
SKIP_TESTS[test_exception_variations.py]=1
|
SKIP_TESTS[test_exception_variations.py]=1
|
||||||
|
Reference in New Issue
Block a user