Changeset: ffc217d9bdb3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ffc217d9bdb3
Modified Files:
        sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
Branch: Jan2022
Log Message:

The run command doesn't do glob expansion. Also use a more portable way to 
remove files


diffs (23 lines):

diff --git a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py 
b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
--- a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
+++ b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
@@ -1,4 +1,4 @@
-import os, sys
+import os, sys, glob
 from subprocess import run, PIPE, CalledProcessError
 
 HOST=os.getenv('HOST')
@@ -62,11 +62,8 @@ if __name__ == '__main__':
         raise SystemExit(e.stderr)
 
 # cleanup created data export files from Tests/DownloadData.sql
-    cmd = ['rm', '-f', os.path.join(TSTSRCBASE, TSTDIR, 
'Tests/sys_tables_by_id.*')]
-    try:
-        p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8')
-    except CalledProcessError as e:
-        raise SystemExit(e.stderr)
+    for tfile in glob.glob(os.path.join(TSTSRCBASE, TSTDIR, 
'Tests/sys_tables_by_id.*')):
+        os.remove(tfile)
 
 #set -e
 #
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to