Skip to content

Commit

Permalink
use make fulltoxtest instead of using runtests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grainger committed Jun 28, 2015
1 parent b2b15bd commit 58e3d7f
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 30 deletions.
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
language: python
python: 3.4
env:
- TOX_ENV=py33-all
- TOX_ENV=py33-ignore
- TOX_ENV=py34-all
- TOX_ENV=py34-ignore
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=lint
matrix:
allow_failures:
- env: TOX_ENV=py33-all
- env: TOX_ENV=py34-all
install:
- pip install tox
script:
Expand Down
16 changes: 0 additions & 16 deletions ignored_tests

This file was deleted.

27 changes: 27 additions & 0 deletions known_failures.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--- known_failures.py 2015-06-28 14:33:12.270911380 +0100
+++ known_failures.py 2015-06-28 14:33:04.303661343 +0100
@@ -107,6 +107,24 @@
FLAKY test__socket.py
'''.strip().split()

+FAILING_TESTS += '''
+ test__subprocess_poll.py
+ test_close_backend_fd.py
+ test_hub_join_timeout.py
+ test__example_udp_client.py
+ test_hub_join.py
+ test__subprocess.py
+ test_threading_2.py
+ test__destroy.py
+ test__server.py
+ test__doctests.py
+ test__core_stat.py
+ test__example_portforwarder.py
+ test__example_udp_server.py
+ test__environ.py
+ test_ares_timeout.py
+'''.strip().split()
+

if __name__ == '__main__':
import pprint
14 changes: 14 additions & 0 deletions runtests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

TOXINIDIR=$1
ENVTMPDIR=$2

mkdir -p "${ENVTMPDIR}"
cp -r "${TOXINIDIR}/gevent" "${ENVTMPDIR}/gevent"
(
cd "${ENVTMPDIR}/gevent"
patch < "${TOXINIDIR}/known_failures.patch"
make fulltoxtest
)
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
[tox]
envlist = py{33,34}-{all,ignore}, lint
envlist = py{33,34}, lint

[testenv]
setenv =
GEVENT_LOOP = tulipcore.Loop
changedir = {toxinidir}/gevent/greentest/
commands =
ignore: python testrunner.py --ignore {toxinidir}/ignored_tests {posargs}
all: python testrunner.py {posargs}
commands = {toxinidir}/runtests.sh {toxinidir} {envtmpdir}
deps =
py33: asyncio==3.4.3
cython==0.22.1
https://github.com/gevent/gevent/archive/454bced7b3a3e4feb0d8c101de290aacd36dac2d.tar.gz

[testenv:lint]
changedir = {toxinidir}
deps =
flake8==2.4.1
cython==0.22.1
https://github.com/gevent/gevent/archive/454bced7b3a3e4feb0d8c101de290aacd36dac2d.tar.gz
commands=
flake8 tulipcore.py
whitelist_externals=cp

0 comments on commit 58e3d7f

Please sign in to comment.