Skip to content
Snippets Groups Projects
Commit e6ee3120 authored by inso's avatar inso
Browse files

Protect tests + show paths

parent 2fa6c1b6
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
call activate test-environment
echo "%PATH%"
echo "%QT_QPA_PLATFORM_PLUGIN_PATH%"
echo "%QT_PLUGIN_PATH%"
python -V
call pyuic5 --version
......
......@@ -3,7 +3,7 @@
call activate test-environment
echo "%PATH%"
echo "%QT_QPA_PLATFORM_PLUGIN_PATH%"
echo "%QT_PLUGIN_PATH%"
python -V
call pyuic5 --version
......@@ -11,6 +11,8 @@ pyrcc5 -version
lrelease -version
echo %CWS%
python setup.py test
if %errorlevel% neq 0 exit /b 1
\ No newline at end of file
......@@ -7,6 +7,12 @@ import unittest
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
if "test" in sys.argv:
if "XDG_CONFIG_HOME" in os.environ:
os.environ["XDG_CONFIG_HOME"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp'))
elif "HOME" in os.environ:
os.environ["HOME"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp'))
elif "APPDATA" in os.environ:
os.environ["APPDATA"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp'))
runner = unittest.TextTestRunner().run(unittest.defaultTestLoader.discover(start_dir='sakia.tests',
pattern='test_*'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment