From 7c9e48da1f3c88cff6602658ff74476445e1b2bd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 19 Jun 2018 08:18:50 +0200 Subject: bin/sanity-check: accellerate check for left-over mysql files --- bin/sanity-check | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/sanity-check b/bin/sanity-check index 0445183..3c30cbb 100755 --- a/bin/sanity-check +++ b/bin/sanity-check @@ -449,11 +449,14 @@ 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/^/>> /' '{}' \; + -name 'tmp.mysql-functions.query.*' | \ + parallel -j0 \ + 'bash -c " + sleep 5 + test -s {} && '\ + 'printf '"'"'%s:\n'"'"' {} && '\ + 'sed '"'"'s/^/>> /'"'"' {} + "' ) if [ -n "${errors}" ]; then if [ ${silence} -le 1 ]; then -- cgit v1.2.3