Skip to content
Myr

Added a workaround for py.test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 54c126e · Browse files · 1 file+11 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−2 removed

  • tests:+11 added−2 removed

1 file+11 added−2 removed

modified:tests/flaskext_test.py+11 added-2 removed
214 unmodified lines
215216 # figure out the test command and write a wrapper script. We217 # can't write that directly into the tox ini because tox does218 # not invoke the command from the shell so we have no chance219 # to pipe the output into a logfile219 # to pipe the output into a logfile. The /dev/null hack is220 # to trick py.test (if used) into not guessing widths from the221 # invoking terminal.222 test_command = get_test_command(checkout_path)223 log('Test command: %s', test_command)224 f = open(checkout_path + '/flaskext-runtest.sh', 'w')223 f.write(test_command + ' &> "$1"\n')225 f.write(test_command + ' &> "$1" < /dev/null\n')226 f.close()227228 # if there is a tox.ini, remove it, it will cause troubles229 # for us. Remove it if present, we are running tox ourselves230 # afterall.231 toxini = os.path.join(checkout_path, 'tox.ini')232 if os.path.isfile(toxini):233 os.remove(toxini)234235 create_tox_ini(checkout_path, interpreters, flask_dep)236 rv = subprocess.call(['tox'], cwd=checkout_path)237 return TestResult(name, checkout_path, rv, interpreters)238
48 unmodified lines