File: run_tests.sh

package info (click to toggle)
dask.distributed 2021.01.0%2Bds.1-2.1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,668 kB
  • sloc: python: 54,131; javascript: 1,549; makefile: 207; sh: 100
file content (25 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export PYTEST_OPTIONS="-r s --timeout-method=thread --timeout=300 --durations=20"
if [[ $RUNSLOW != false ]]; then
    export PYTEST_OPTIONS="$PYTEST_OPTIONS --runslow"
fi

# On OS X builders, the default open files limit is too small (256)
if [[ $TRAVIS_OS_NAME == osx ]]; then
    ulimit -n 8192
fi

echo "--"
echo "-- Soft limits"
echo "--"
ulimit -a -S

echo "--"
echo "-- Hard limits"
echo "--"
ulimit -a -H

if [[ $COVERAGE == true ]]; then
    coverage run $(which py.test) distributed -m "not avoid_travis" $PYTEST_OPTIONS
else
    py.test -m "not avoid_travis" distributed $PYTEST_OPTIONS
fi