Fix bug in pg_dtester.py.in under dtester 0.2.
authorKevin Grittner <[email protected]>
Mon, 15 Nov 2010 21:32:13 +0000 (15:32 -0600)
committerKevin Grittner <[email protected]>
Mon, 15 Nov 2010 21:32:13 +0000 (15:32 -0600)
We need to 'current transaction is aborted' errors within
DatabasePermutationTest to allow all permutations to run and to
not generate false failures.

src/test/regress/pg_dtester.py.in

index 8dba68631d383fef2b41f59a2cba0e1962e90f1d..f9a3f191ddec72799877bb05fdb20fe787da038e 100644 (file)
@@ -654,7 +654,9 @@ class DatabasePermutationTest(PermutationTest):
            if len(line) > 0 and line.startswith("ERROR:  could not serialize"):
                self.serializationFailure = True
            else:
-               if len(line) > 0 and line.startswith("ERROR:"):
+               if (len(line) > 0
+                   and line.startswith("ERROR:")
+                   and not line.startswith("ERROR:  current transaction is aborted")):
                    raise TestFailure("failure other than serializable encountered: " + line, line)
 
    def printStatistics(self):