testsuite: cleanup whitespace issues

Fix indentation that uses spaces before tabs, reported by
git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904
This commit is contained in:
Dmitry V. Levin 2020-11-19 08:00:00 +00:00
parent 9aa377c2ed
commit f1c1f29968
2 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,8 @@
2020-11-19 Dmitry V. Levin <ldv@altlinux.org>
* testsuite/config-sub.sh: Fix indentation that uses spaces before
tabs.
* .gitattributes: New file.
2020-11-17 Dmitry V. Levin <ldv@altlinux.org>

View File

@ -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