Changeset: 05c70720ff30 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/05c70720ff30 Modified Files: testing/sqllogictest.py Branch: Dec2023 Log Message:
Thinko in onlyif handling. diffs (39 lines): diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py --- a/testing/sqllogictest.py +++ b/testing/sqllogictest.py @@ -781,22 +781,27 @@ class SQLLogic: if words[1] == f'threads={nthreads}': skipping = True elif words[1] == 'has-hugeint': - skipping |= hashge + if hashge: + skipping = True elif words[1] == 'knownfail': - skipping |= not self.alltests + if self.alltests: + skipping = True elif words[0] == 'onlyif': - if words[1] not in ('MonetDB', f'arch={architecture}', f'system={system}', f'bits={bits}'): - skipping = True + skipping = True + if words[1] in ('MonetDB', f'arch={architecture}', f'system={system}', f'bits={bits}'): + skipping = False elif words[1].startswith('threads='): if nthreads is None: self.crs.execute("select value from env() where name = 'gdk_nr_threads'") nthreads = self.crs.fetchall()[0][0] - if words[1] != f'threads={nthreads}': - skipping = True + if words[1] == f'threads={nthreads}': + skipping = False elif words[1] == 'has-hugeint': - skipping |= not hashge + if hashge: + skipping = False elif words[1] == 'knownfail': - skipping |= self.alltests + if self.alltests: + skipping = False self.writeline(line.rstrip()) line = self.readline() words = line.split(maxsplit=2) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org