Re: [PATCH] t9600: require cvsps 2.1 to perform tests
Jeff King <peff@peff.net> writes:
Show 16 quoted lines
> +cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
> +case "$cvsps_version" in
> +2.1)
> + ;;
> +'')
> + say 'skipping cvsimport tests, cvsps not found'
> + test_done
> + exit
> + ;;
> +*)
> + say 'skipping cvsimport tests, cvsps too old'
> + test_done
> + exit
> + ;;
> +esac
> +
I wonder if it is better to grep for ' [-A] ' instead, like:
cvsps_supports_A=$(cvsps -h 2>&1 | sed -ne '/\[-A\]/p')
case "$cvsps_supports_A" in
'')
say 'skipping cvsimport tests, lacking cvsps that supports -A option'
test_done
exit
esac