Skip to content

Commit eacdd42

Browse files
tboegigitster
authored andcommitted
t9402: Rename check.cvsCount and check.list
Checking and comparing the number of line in check.list and check.cvsCount had been replaced by comparing both files line by line. Rename the filenames to make clear which is expected and which is actual: check.list -> list.expected check.cvsCount-> list.actual Signed-off-by: Torsten Bögershausen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 941c1e0 commit eacdd42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/t9402-git-cvsserver-refs.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags, branches and other git refspecs'
1010
#########
1111

1212
check_start_tree() {
13-
rm -f "$WORKDIR/check.list"
13+
rm -f "$WORKDIR/list.expected"
1414
echo "start $1" >>"${WORKDIR}/check.log"
1515
}
1616

@@ -23,22 +23,22 @@ check_file() {
2323
test_cmp "$WORKDIR/check.got" "$sandbox/$file"
2424
stat=$?
2525
echo "check_file $sandbox $file $ver : $stat" >>"$WORKDIR/check.log"
26-
echo "$file" >>"$WORKDIR/check.list"
26+
echo "$file" >>"$WORKDIR/list.expected"
2727
return $stat
2828
}
2929

3030
check_end_tree() {
3131
sandbox="$1" &&
32-
find "$sandbox" -name CVS -prune -o -type f -print >"$WORKDIR/check.cvsCount" &&
33-
sort <"$WORKDIR/check.list" >expected &&
34-
sort <"$WORKDIR/check.cvsCount" | sed -e "s%cvswork/%%" >actual &&
32+
find "$sandbox" -name CVS -prune -o -type f -print >"$WORKDIR/list.actual" &&
33+
sort <"$WORKDIR/list.expected" >expected &&
34+
sort <"$WORKDIR/list.actual" | sed -e "s%cvswork/%%" >actual &&
3535
test_cmp expected actual &&
3636
rm expected actual
3737
}
3838

3939
check_end_full_tree() {
4040
sandbox="$1" &&
41-
sort <"$WORKDIR/check.list" >expected &&
41+
sort <"$WORKDIR/list.expected" >expected &&
4242
find "$sandbox" -name CVS -prune -o -type f -print | sed -e "s%$sandbox/%%" | sort >act1 &&
4343
test_cmp expected act1 &&
4444
git ls-tree --name-only -r "$2" | sort >act2 &&

0 commit comments

Comments
 (0)