Accepting request 825342 from devel:languages:python

- do mysql shutdown even if testsuite fails, exit 1 afterwards

OBS-URL: https://build.opensuse.org/request/show/825342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mysqlclient?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2020-08-13 08:12:32 +00:00 committed by Git OBS Bridge
commit ca3a5a8081
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 4 07:18:37 UTC 2020 - pgajdos@suse.com
- do mysql shutdown even if testsuite fails, exit 1 afterwards
-------------------------------------------------------------------
Thu Mar 5 13:33:30 UTC 2020 - Kristyna Streitova <kstreitova@suse.com>

View File

@ -82,17 +82,17 @@ cconf=abuild-myclient.cnf
#
# start the mariadb server
#
%mysql_testserver_start -u auth_db_user -p auth_db_pass
%mysql_testserver_start -u auth_db_user -p auth_db_pass -d test_database
#
# creating client mysql config
#
%mysql_testserver_cconf -n $cconf
%mysql_testserver_cconf -n $cconf -d test_database
#
# running the test
#
rm -r MySQLdb
export TESTDB="$PWD/$cconf"
%pytest_arch -k "not (test_LONG or test_TEXT)"
%pytest_arch -k "not (test_LONG or test_TEXT)" || exit_code=1
#
# stopping mariadb
#