Changeset: 245f99b29ab1 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/245f99b29ab1 Modified Files: sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py Branch: Jan2022 Log Message:
Added checks to compare output from JdbcClient program with expected output. diffs (17 lines): diff --git a/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py b/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py --- a/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py +++ b/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py @@ -17,7 +17,11 @@ if __name__ == '__main__': cmd = ['java', CLIENT, '-h', HOST, '-p', MAPIPORT, '-d', TSTDB, '-f', os.path.join(TSTSRCBASE, TSTDIR, 'Tests', 'ValidateSystemCatalogTables.sql')] try: p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8') - sys.stderr.write(p.stdout) - sys.stderr.write(p.stderr) + pout = str(p.stdout) + if pout != "": + print(pout) + perr = str(p.stderr) + if perr != "": + print(perr) except CalledProcessError as e: raise SystemExit(e.stderr) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list