File: remove_check_qtwebengine.sh

package info (click to toggle)
spyder 6.1.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 25,716 kB
  • sloc: python: 130,955; sh: 411; xml: 149; javascript: 131; cpp: 67; makefile: 20; ansic: 19; erlang: 15; lisp: 11; java: 5
file content (28 lines) | stat: -rwxr-xr-x 626 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
#!/usr/bin/env bash

set -eo pipefail

echo "which spyder: $(which spyder)"
pip show pyqtwebengine
TO=10s
for i in 1 2; do
    echo "::group::Iteration $i"
    if [[ "$i" == "2" ]]; then
        echo "Removing pyqtwebengine"
        pip uninstall -y pyqtwebengine
        echo
    fi
    echo "Running Spyder with a timeout of $TO:"
    set +e
    timeout $TO spyder
    RESULT=$?
    set -e
    if [[ $RESULT -eq 124 ]]; then
        echo "Spyder succeeded with timeout"
        echo
    else
        echo "Spyder failed with error code $RESULT (should be 124 for timeout)"
        exit 1
    fi
    echo "::endgroup::"
done