Changeset: 74f4595f8613 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/74f4595f8613
Modified Files:
        testing/Mtest.py.in
        testing/process.py
Branch: Jul2021
Log Message:

Propagate NOWAL option to Python scripts.


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
@@ -3488,6 +3488,7 @@ def main(argv) :
             mserver5_opts.extend(['--set', a])
             if a == 'sql_debug=128':
                 CONDITIONALS['NOWAL'] = True
+                os.environ['NOWAL'] = 'True'
     if opts.loadmodule:
         for a in opts.loadmodule:
             mserver5_opts.extend(['--loadmodule', a])
diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -370,6 +370,8 @@ class server(Popen):
             cmd = ['mserver5',
                    '--set', ipv6 and 'mapi_listenaddr=all' or 
'mapi_listenaddr=0.0.0.0',
                    '--set', 'gdk_nr_threads=1']
+        if os.getenv('NOWAL'):
+            cmd.extend(['--set', 'sql_debug=128'])
         if verbose:
             sys.stdout.write('Default server: ' + ' '.join(cmd +  args) + '\n')
         if notrace and '--trace' in cmd:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to