Skip to content ensure exit code is not over-optimistic; MultiTestDB: SQLite munging

Marek Szuba requested to merge github/fork/Annosoft/master into master

Created by: mjg17

Sorry, this should really be two pull requests. I can re-work if necessary.

The first - and important - patch to ensures that parse errors, bad exit codes and script aborts are taken into account in generating the exit code. I was about to send a pull request for my SQLite Travis work when I noticed that actually two tests had failed, one by SEGVing and the other by exiting early.

The second two patches to MultiTestDB allow for fragments of SQL to be run before and after loading test data from the .txt files. These are named table.pre and and are expected to be in the driver-specific subdirectory.

The problem I encountered was that the NULL representation has to be replaced after loading into SQLite, but violates a unique index on transcript.canonical_transcript_id:

Thanks Michael

Merge request reports