Changeset: 66795bf70a64 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/66795bf70a64
Modified Files:
        testing/sqllogictest.py
Branch: Mar2025
Log Message:

Make working with ON CLIENT in tests easier.


diffs (16 lines):

diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py
--- a/testing/sqllogictest.py
+++ b/testing/sqllogictest.py
@@ -1074,7 +1074,11 @@ if __name__ == '__main__':
     parser.add_argument('tests', nargs='*', help='tests to be run')
     opts = parser.parse_args()
     args = opts.tests
-    sql = SQLLogic(report=opts.report)
+    if args:
+        srcdir = Path(args[0]).parent
+    else:
+        srcdir = '.'
+    sql = SQLLogic(srcdir=srcdir, report=opts.report)
     sql.res = opts.results
     sql.connect(hostname=opts.host, port=opts.port, database=opts.database,
                 language=opts.language, username=opts.user,
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to