Commits

Kirill Simonov committed bd5c330

Fixed deployment of regression databases for SQLite.

  • Participants
  • Parent commits 8760f50

Comments (0)

Files changed (2)

src/htsql/ctl/regress.py

         # Display the header.
         self.out_header()
         # Write the data to the file.
-        stream = open(input.write, 'wb')
-        stream.write(input.data)
+        stream = open(self.input.write, 'wb')
+        stream.write(self.input.data)
         stream.close()
 
 

test/input/sqlite.yaml

   id: create-sqlite
   tests:
   - mkdir: build/regress/sqlite
+  - write: build/regress/sqlite/htsql_demo.sqlite
+    data: ""
   - connect: &connect-demo
       engine: sqlite
       database: build/regress/sqlite/htsql_demo.sqlite
     sql-include: test/sql/demo-sqlite.sql
   - db: *connect-demo
   - py-include: test/sql/demo-load.py
+  - write: build/regress/sqlite/htsql_edge.sqlite
+    data: ""
   - connect: &connect-edge
       engine: sqlite
       database: build/regress/sqlite/htsql_edge.sqlite
     sql-include: test/sql/edge-sqlite.sql
+  - write: build/regress/sqlite/htsql_sandbox.sqlite
+    data: ""
   - connect: &connect-sandbox
       engine: sqlite
       database: build/regress/sqlite/htsql_sandbox.sqlite