Replies: 2 comments 1 reply
-
Try |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have rewritten my test a bit, as below, to focus on the essentials for this question.
@test "mytest" {
cat
sql/load_spatialite.sql
sql/gpkgCreateBaseTables.sql
sql/gpkgInsertEpsgSRID25832.sql
| sqlite3 test.gpkg
./validate_gpkg.py test.gpkg
}
If one of the files do not exist, then cat exits with exit code 1. But because I pipe stdout to another process, the exit status of that command is 0. So the test passes even though a file was not found.
Is there anything one can do to make the test fail, if the the pipe writing process (in this case
cat
) fails?Beta Was this translation helpful? Give feedback.
All reactions