Skip to content

Commit

Permalink
py3plug-fd-postgres systemtest: remove "BROKEN" label
Browse files Browse the repository at this point in the history
The test was marked broken when the plugin was using psycopg2, but now
we use pg8000 so we want to enable it again if all requirements are met.

Also we allow python >= 3.10 to be used as we now avoid the problems
arising from the fact that the stat time filds are floats instead of
ints:

> mystatp.st_atime = statp.st_atime
> TypeError: 'float' object cannot be interpreted as an integer
  • Loading branch information
pstorz committed May 17, 2022
1 parent c190b6a commit 9df098f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions systemtests/tests/py2plug-fd-postgres/CMakeLists.txt
@@ -1,6 +1,6 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2021-2021 Bareos GmbH & Co. KG
# Copyright (C) 2021-2022 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -30,13 +30,8 @@ if(TARGET python3-fd)
if(PYMODULE_3_PG8000_FOUND
AND PYMODULE_3_DATEUTIL_FOUND
AND (${Python3_VERSION_MAJOR} EQUAL 3)
AND (${Python3_VERSION_MINOR} LESS 10)
)
create_systemtest(${SYSTEMTEST_PREFIX} "py3plug-fd-postgres")
# fails because of psycopg2
set_tests_properties(
"${SYSTEMTEST_PREFIX}py3plug-fd-postgres" PROPERTIES LABELS "broken"
)
else()
create_systemtest(${SYSTEMTEST_PREFIX} "py3plug-fd-postgres" DISABLED)
endif()
Expand Down

0 comments on commit 9df098f

Please sign in to comment.