It seems that this seems to have been further refactored by introducing a
couple of new helper functions. I'll replae what was queued in 'pu' with
this, with the following minor fix-ups.
Thanks.
t/t9810-git-p4-rcs.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/t9810-git-p4-rcs.sh b/t/t9810-git-p4-rcs.sh
index 77eebd2..3013bab 100755
--- a/t/t9810-git-p4-rcs.sh
+++ b/t/t9810-git-p4-rcs.sh
@@ -201,7 +201,7 @@ test_expect_success 'cleanup after failure 2' '
)
'
-create_kw_file() {
+create_kw_file () {
cat <<\EOF >"$1"
/* A file
Id: $Id$@@ -226,7 +226,7 @@ test_expect_success 'add kwfile' '
)
'
-p4_append_to_file() {
+p4_append_to_file () {
f=$1 &&
p4 edit -t ktext "$f" &&
echo "/* $(date) */" >>"$f" &&@@ -248,7 +248,7 @@ test_expect_success 'cope with rcs keyword expansion damage' '
old_lines=$(wc -l <kwfile1.c) &&
perl -n -i -e "print unless m/Revision:/" kwfile1.c &&
new_lines=$(wc -l <kwfile1.c) &&
- expr $new_lines == $old_lines - 1 &&
+ test $new_lines = $(($old_lines - 1)) &&
git add kwfile1.c &&
git commit -m "Zap an RCS kw line" &&
@@ -278,12 +278,12 @@ test_expect_success 'cope with rcs keyword file deletion' '
p4 add -t ktext kwdelfile.c &&
p4 submit -d "Add file to be deleted" &&
cat kwdelfile.c &&
- grep -q 1 kwdelfile.c
+ grep 1 kwdelfile.c
) &&
"$GITP4" clone --dest="$git" //depot &&
(
cd "$git" &&
- grep -q Revision kwdelfile.c &&
+ grep Revision kwdelfile.c &&
git rm -f kwdelfile.c &&
git commit -m "Delete a file containing RCS keywords" &&
git config git-p4.skipSubmitEdit true &&