diff --git a/postgresql-odbc-09.05.0210-tests-arm.patch b/postgresql-odbc-09.05.0210-tests-arm.patch index 6e5ad4d..ee98b51 100644 --- a/postgresql-odbc-09.05.0210-tests-arm.patch +++ b/postgresql-odbc-09.05.0210-tests-arm.patch @@ -10,13 +10,15 @@ Related: rhbz#1330031 --- test/tests | 1 - 1 file changed, 1 deletion(-) - diff --git a/test/tests b/test/tests -index a699d5d..1909983 100644 +index a06a575..f923e92 100644 --- a/test/tests +++ b/test/tests -@@ -37,7 +37,6 @@ TESTBINS = exe/connect-test \ - exe/cursor-block-delete-test \ +@@ -34,10 +34,8 @@ TESTBINS = exe/connect-test \ + exe/cursor-movement-test \ + exe/cursor-commit-test \ + exe/cursor-name-test \ +- exe/cursor-block-delete-test \ exe/bookmark-test \ exe/declare-fetch-commit-test \ - exe/declare-fetch-block-test \ diff --git a/postgresql-odbc.spec b/postgresql-odbc.spec index d9c11e1..91cf00b 100644 --- a/postgresql-odbc.spec +++ b/postgresql-odbc.spec @@ -28,10 +28,6 @@ PostgreSQL system via ODBC (Open Database Connectivity). %prep %autosetup -p1 -n psqlodbc-%{version} -%ifarch armv7hl -cat %{SOURCE2} | patch -p1 -%endif - cat <README.rpmdist The upstream psqlodbc testsuite is distributed in '%{name}-tests' (sub)package. @@ -63,12 +59,19 @@ popd pgtests_start -cd test && make installcheck || { +cd test && make installcheck %{_smp_mflags} || { echo "=== trying to find all regression.diffs files in build directory ===" find -name regression.diffs | while read line; do cat "$line" done + + %ifarch armv7hl + echo "=== running the testsuite again with disabled expected failures ===" + cat %{SOURCE2} | patch -p2 + make installcheck %{_smp_mflags} + %else false + %endif }