correct SLOW env var, run slow tests on ci

main
Samuel Colvin 9 years ago
parent aada162a4d
commit fa48751fed

@ -15,6 +15,6 @@ install:
- pip install coveralls --use-mirrors - pip install coveralls --use-mirrors
#- pip install pytest # installed by Travis by default already #- pip install pytest # installed by Travis by default already
script: script:
- py.test --cov rq - RUN_SLOW_TESTS_TOO=1 py.test --cov rq
after_success: after_success:
- coveralls - coveralls

@ -17,9 +17,9 @@ else
safe_rg=cat safe_rg=cat
fi fi
export ONLY_RUN_FAST_TESTS=1 export RUN_SLOW_TESTS_TOO=1
if [ "$1" = '-f' ]; then # Poor man's argparse if [ "$1" = '-f' ]; then # Poor man's argparse
unset ONLY_RUN_FAST_TESTS unset RUN_SLOW_TESTS_TOO
shift 1 shift 1
fi fi

@ -32,7 +32,7 @@ def slow(f):
@wraps(f) @wraps(f)
def _inner(*args, **kwargs): def _inner(*args, **kwargs):
if os.environ.get('ONLY_RUN_FAST_TESTS'): if os.environ.get('RUN_SLOW_TESTS_TOO'):
f(*args, **kwargs) f(*args, **kwargs)
return _inner return _inner

Loading…
Cancel
Save