summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-13 15:12:35 +0200
committerErich Eckner <git@eckner.net>2018-04-13 15:12:35 +0200
commitda7eb1fc8e1ba94c2ba645d8b9ec2823ca0114c7 (patch)
treed89d8c3dfc3de3cbdbfcbbecca3afcb587580353
parent5d71db45a01879d6911f45297724346f1cc8aa74 (diff)
downloadbuilder-da7eb1fc8e1ba94c2ba645d8b9ec2823ca0114c7.tar.xz
bin/sanity-check: test if left-over mysql query is still there after 5 seconds
-rwxr-xr-xbin/sanity-check2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index c67f2ab..06da288 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -417,6 +417,8 @@ while [ $# -gt 0 ]; do
errors=$(
find "${work_dir}" -mindepth 1 -maxdepth 1 \
-name 'tmp.mysql-functions.query.*' \
+ -exec sleep 5 \; \
+ -exec test -s {} \; \
-printf '%f\n' \
-execdir sed 's/^/>> /' '{}' \;
)