Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/sanity-check
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-08 09:14:30 +0100
committerErich Eckner <git@eckner.net>2018-03-08 09:14:30 +0100
commit5423c468f869116deb7de781373b8d35d61a136c (patch)
treeccb42cbbf4c0807a4079208cfcdd06eaf122f84d /bin/sanity-check
parent4a8a8b2408ebf2543bc9fb00165b502a12cef7a2 (diff)
bin/sanity-check: check for pending mysql queries
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-xbin/sanity-check6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 9487726..824b7a2 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -400,6 +400,12 @@ while [ $# -gt 0 ]; do
i_am_insane
fi
+ if find "${work_dir}" -mindepth 1 -maxdepth 1 -name 'tmp.mysql-functions.query.*' | \
+ grep '\S' >> \
+ "${tmp_dir}/messages"; then
+ i_am_insane
+ fi
+
[ ${silence} -gt 0 ] || \
echo ' passed.' >> \
"${tmp_dir}/messages"