Changeset: 65edf45de03e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/65edf45de03e
Modified Files:
        testing/Mtest.py.in
Branch: Jan2022
Log Message:

Continue after any exception (except interrupt) but print info.


diffs (23 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2877,6 +2877,8 @@ def DoIt(env, SERVER, CALL, TST, EXT, Te
                                 pass
                         try:
                             sql.parse(TST+EXT, 
approve=open(TST+'.newtest','w') if approve else None)
+                        except KeyboardInterrupt:
+                            raise
                         except sqllogictest.SQLLogicSyntaxError:
                             pass
                         except BrokenPipeError:
@@ -2885,6 +2887,10 @@ def DoIt(env, SERVER, CALL, TST, EXT, Te
                         except ConnectionResetError:
                             # server crash?
                             pass
+                        except:
+                            # something went wrong, we don't know what
+                            # print a stack trace and continue
+                            sys.excepthook(*sys.exc_info())
             elif CALL in ["sql", "sqlXs"]:
                 TSTs = []
                 if CALL == "sql":
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to