From 9df098f33b813ed4b24706b9ecff71aa71eedb4d Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Tue, 17 May 2022 13:40:12 +0200 Subject: [PATCH] py3plug-fd-postgres systemtest: remove "BROKEN" label 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 --- systemtests/tests/py2plug-fd-postgres/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/systemtests/tests/py2plug-fd-postgres/CMakeLists.txt b/systemtests/tests/py2plug-fd-postgres/CMakeLists.txt index ab3ca2b6049..11feb6794b4 100644 --- a/systemtests/tests/py2plug-fd-postgres/CMakeLists.txt +++ b/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 @@ -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()