Changeset: ba3e05d74b24 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ba3e05d74b24
Modified Files:
        testing/Mtest.py.in
Branch: Sep2022
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
@@ -2915,6 +2915,8 @@ def DoIt(env, SERVER, CALL, TST, EXT, Te
                                     defines.append('{}={}'.format(key, 
env[key]))
                         try:
                             sql.parse(TST+EXT, 
approve=open(TST+'.newtest','w') if approve else None, defines=defines)
+                        except KeyboardInterrupt:
+                            raise
                         except sqllogictest.SQLLogicSyntaxError:
                             pass
                         except BrokenPipeError:
@@ -2923,6 +2925,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 -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to