#!/bin/sh
set -e -u
export PYTHONWARNINGS=d

# SasView insists on writing to ~/sasview.log
export HOME="$AUTOPKGTEST_TMP"

cp -r  src/sas/qtgui "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP/qtgui"

# The GUI tests currently fail upstream so suppress the error
# SKIP: currently hanging (v6)
# 94 failed, 231 passed, 34 skipped, 52 xfailed, 4 xpassed, 3 warnings, 19 errors
# xvfb-run -a --server-args="-screen 0 1024x768x24" python3 -m pytest --ignore=src/sas/webfit src/
