mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-29 02:26:36 +12:00
testsuite: cleanup whitespace issues
Fix indentation that uses spaces before tabs, reported by git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904
This commit is contained in:
parent
9aa377c2ed
commit
f1c1f29968
@ -1,5 +1,8 @@
|
|||||||
2020-11-19 Dmitry V. Levin <ldv@altlinux.org>
|
2020-11-19 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
|
||||||
|
* testsuite/config-sub.sh: Fix indentation that uses spaces before
|
||||||
|
tabs.
|
||||||
|
|
||||||
* .gitattributes: New file.
|
* .gitattributes: New file.
|
||||||
|
|
||||||
2020-11-17 Dmitry V. Levin <ldv@altlinux.org>
|
2020-11-17 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
@ -30,22 +30,22 @@ run_one_config_sub()
|
|||||||
|
|
||||||
run_config_sub()
|
run_config_sub()
|
||||||
{
|
{
|
||||||
local -i rc=0 jobs=0
|
local -i rc=0 jobs=0
|
||||||
numtests=0
|
numtests=0
|
||||||
name="checks"
|
name="checks"
|
||||||
while read -r alias canonical ; do
|
while read -r alias canonical ; do
|
||||||
run_one_config_sub "$alias" "$canonical" &
|
run_one_config_sub "$alias" "$canonical" &
|
||||||
numtests+=1 jobs+=1
|
numtests+=1 jobs+=1
|
||||||
if test $jobs -eq $maxprocs ; then
|
if test $jobs -eq $maxprocs ; then
|
||||||
for pid in $(jobs -p) ; do
|
for pid in $(jobs -p) ; do
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
rc=$((rc || $?))
|
rc=$((rc || $?))
|
||||||
done
|
done
|
||||||
jobs=0
|
jobs=0
|
||||||
fi
|
fi
|
||||||
done < config-sub.data
|
done < config-sub.data
|
||||||
for pid in $(jobs -p) ; do
|
for pid in $(jobs -p) ; do
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
rc=$((rc || $?))
|
rc=$((rc || $?))
|
||||||
done
|
done
|
||||||
return $rc
|
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
|
sed -r 's/\t+/\t/g' < config-sub.data | cut -f 2 | uniq | while read -r canonical ; do
|
||||||
run_one_config_sub_idempotent "$canonical" &
|
run_one_config_sub_idempotent "$canonical" &
|
||||||
numtests+=1 jobs+=1
|
numtests+=1 jobs+=1
|
||||||
if test $jobs -eq $maxprocs ; then
|
if test $jobs -eq $maxprocs ; then
|
||||||
for pid in $(jobs -p) ; do
|
for pid in $(jobs -p) ; do
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
rc=$((rc || $?))
|
rc=$((rc || $?))
|
||||||
done
|
done
|
||||||
jobs=0
|
jobs=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for pid in $(jobs -p) ; do
|
for pid in $(jobs -p) ; do
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
rc=$((rc || $?))
|
rc=$((rc || $?))
|
||||||
done
|
done
|
||||||
return $rc
|
return $rc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user