From f1c1f29968991c6d1f3644c137e2c8983c1d176c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 19 Nov 2020 08:00:00 +0000 Subject: [PATCH] testsuite: cleanup whitespace issues Fix indentation that uses spaces before tabs, reported by git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 --- ChangeLog | 3 +++ testsuite/config-sub.sh | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9893a30..b2a5087 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-11-19 Dmitry V. Levin + * testsuite/config-sub.sh: Fix indentation that uses spaces before + tabs. + * .gitattributes: New file. 2020-11-17 Dmitry V. Levin diff --git a/testsuite/config-sub.sh b/testsuite/config-sub.sh index c679bb3..325a51f 100644 --- a/testsuite/config-sub.sh +++ b/testsuite/config-sub.sh @@ -30,22 +30,22 @@ run_one_config_sub() run_config_sub() { - local -i rc=0 jobs=0 + local -i rc=0 jobs=0 numtests=0 name="checks" while read -r alias canonical ; do run_one_config_sub "$alias" "$canonical" & numtests+=1 jobs+=1 - if test $jobs -eq $maxprocs ; then - for pid in $(jobs -p) ; do - wait "$pid" + if test $jobs -eq $maxprocs ; then + for pid in $(jobs -p) ; do + wait "$pid" rc=$((rc || $?)) done jobs=0 fi done < config-sub.data for pid in $(jobs -p) ; do - wait "$pid" + wait "$pid" rc=$((rc || $?)) done return $rc @@ -73,16 +73,16 @@ run_config_sub_idempotent() sed -r 's/\t+/\t/g' < config-sub.data | cut -f 2 | uniq | while read -r canonical ; do run_one_config_sub_idempotent "$canonical" & numtests+=1 jobs+=1 - if test $jobs -eq $maxprocs ; then - for pid in $(jobs -p) ; do - wait "$pid" + if test $jobs -eq $maxprocs ; then + for pid in $(jobs -p) ; do + wait "$pid" rc=$((rc || $?)) done jobs=0 fi done for pid in $(jobs -p) ; do - wait "$pid" + wait "$pid" rc=$((rc || $?)) done return $rc