t9600: allow testing with cvsps 2.2, including beta versions
PATCH 1/1 t9600: allow testing with cvsps 2.2, including beta versions
Don't assume that unsupported versions are too old, they may be too new.
---
t/t9600-cvsimport.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
t/t9600-cvsimport.sh +3 -1
@@ -20,13 +20,15 @@ cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` case "$cvsps_version" in 2.1) ;; +2.2*) + ;; '') say 'skipping cvsimport tests, cvsps not found' test_done exit ;; *) - say 'skipping cvsimport tests, cvsps too old' + say 'skipping cvsimport tests, unsupported cvsps version' test_done exit ;;
Quoted 1 line · Pavel Roskin
Don't assume that unsupported versions are too old, they may be too new.
Excuse me, but we never assumed such.
Neither too old nor too new ones are proven to work with us yet, so we cannot be call them supported.
Let's apply your patch and see how well version 2.2 fares.
Thanks.
t/t9600-cvsimport.sh cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` · line 24
Quoted 10 lines
t/t9600-cvsimport.sh +2
-0@@ -20,13 +20,15 @@ cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` case "$cvsps_version" in 2.1) ;; +2.2*) + ;;
Hmm, I would have written:
case "$..." in
2.1 | 2.2 )Is the reason why you have the asterisk there because the beta one claims "2.2beta" or something (I am not suggesting to tighten the match, just asking for information)?
Quoting Junio C Hamano <[email protected]>:
Quoted 8 lines
Quoted 1 line · Pavel Roskin
Don't assume that unsupported versions are too old, they may be too new.
Excuse me, but we never assumed such.
Neither too old nor too new ones are proven to work with us yet, so we cannot be call them supported.
The message was "skipping cvsimport tests, cvsps too old" so the assumption was there.
Quoted 18 lines
Let's apply your patch and see how well version 2.2 fares.
Thanks.
t/t9600-cvsimport.sh cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps · line 25
Quoted 11 lines
t/t9600-cvsimport.sh +2
-0@@ -20,13 +20,15 @@ cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` case "$cvsps_version" in 2.1) ;; +2.2*) + ;;Hmm, I would have written:
Quoted 2 lines
case "$..." in
2.1 | 2.2 )Fine with me, but please allow for extra specifiers.
Quoted 3 lines
Is the reason why you have the asterisk there because the beta one claims "2.2beta" or something (I am not suggesting to tighten the match, just asking for information)?
It's cvsps 2.2b1 from Fedora Development (cvsps-2.2-0.1.b1.fc10.x86_64)
$ cvsps -h 2>&1 | grep version cvsps version 2.2b1
Signature · 2 lines
Regards, Pavel Roskin
Quoted 7 lines · Pavel Roskin
Quoted 4 lines
Excuse me, but we never assumed such.
Neither too old nor too new ones are proven to work with us yet, so we cannot be call them supported.
The message was "skipping cvsimport tests, cvsps too old" so the assumption was there.
Heh, you can blame me for making that assumption. But at the time I wrote it, I think cvsps development had stagnated, so there weren't new versions. :)
-Peff