Changeset: bbc94e13563a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bbc94e13563a
Modified Files:
        testing/Mtest.py.in
Branch: Jun2020
Log Message:

Catch pymonetdb connect failure.


diffs (37 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -3160,18 +3160,22 @@ def DoIt(env, SERVER, CALL, TST, EXT, Te
             elif CALL == "sqltest":
                 import MonetDBtesting.sqllogictest as sqllogictest
                 sql = sqllogictest.SQLLogic(ClntErr)
-                sql.connect(hostname='localhost',
-                            port=int(env['MAPIPORT']),
-                            database=TSTDB)
-                sql.drop()
                 try:
-                    sql.parse(TST+EXT)
-                except sqllogictest.SQLLogicSyntaxError:
-                    pass
-                except BrokenPipeError:
-                    # server timeout
-                    pass
-                sql.close()
+                    sql.connect(hostname='localhost',
+                                port=int(env['MAPIPORT']),
+                                database=TSTDB)
+                except:
+                    returncode = 'error'
+                else:
+                    sql.drop()
+                    try:
+                        sql.parse(TST+EXT)
+                    except sqllogictest.SQLLogicSyntaxError:
+                        pass
+                    except BrokenPipeError:
+                        # server timeout
+                        pass
+                    sql.close()
             elif CALL in ["sql", "sqlXs"]:
                 TSTs = []
                 if CALL == "sql":
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to