File: run_tests.sh

package info (click to toggle)
spyder 6.1.3%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,744 kB
  • sloc: python: 130,956; sh: 411; xml: 149; javascript: 131; cpp: 67; makefile: 21; ansic: 19; erlang: 15; lisp: 11; java: 5
file content (30 lines) | stat: -rwxr-xr-x 876 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
#!/bin/bash -ex

# *** DON'T remove this line! ***
# It's necessary to make this script error out in case the pipes below fail.
set -o pipefail

# Add CONDA_EXE to the environment for our conda tests
if [ "$OS" = "win" ]; then
    export CONDA_EXE=$CONDA\\Scripts\\conda
else
    export CONDA_EXE=$CONDA/bin/conda
fi

# To know what's the current run (some tests don't pass on the first one)
while getopts "n:" option; do
    case "$option" in
        (n) export CI_RUN_NUMBER=$OPTARG ;;
    esac
done

# Run tests
if [ "$SPYDER_TEST_REMOTE_CLIENT" = "true" ]; then
    xvfb-run --auto-servernum python runtests.py --color=yes --remote-client | tee -a pytest_log.txt
else
    if [ "$OS" = "linux" ]; then
        xvfb-run --auto-servernum python runtests.py --color=yes | tee -a pytest_log.txt
    else
        python runtests.py --color=yes | tee -a pytest_log.txt
    fi
fi