]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: bail sqlite3 on any error
authorPatrick Donnelly <pdonnell@ibm.com>
Sun, 8 Feb 2026 15:47:52 +0000 (10:47 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Sun, 8 Feb 2026 19:31:01 +0000 (14:31 -0500)
Otherwise it will wrongly proceed executing the next SQL statement.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
qa/workunits/rados/test_libcephsqlite.sh

index e0a15e8158595f42f64a4c901f1041246250a172..bfdcc7bd681772f5c54f0d82dc17c97e913f9938 100755 (executable)
@@ -20,7 +20,7 @@ function sqlite {
   # We're doing job control gymnastics here to make sure that sqlite3 is the
   # main process (i.e. the process group leader) in the background, not a bash
   # function or job pipeline.
-  sqlite3 -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd ".open file:///$pool:$ns/baz.db?vfs=ceph" -cmd '.output stdout' <<<"$a" &
+  sqlite3 -cmd '.bail on' -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd ".open file:///$pool:$ns/baz.db?vfs=ceph" -cmd '.output stdout' <<<"$a" &
   if [ "$background" != b ]; then
     wait
   fi