test fixes for Solaris 2.6
Thomas Arendsen Hein
thomas at intevation.de
Thu Aug 18 01:20:42 CDT 2005
* TK Soh <teekaysoh at yahoo.com> [20050818 06:31]:
> A few test fails on Solaris 2.6 due to the old, non-GNU, sed being used.
> Attached is the patch attempting to fix it. Tested on Redhat 9.
I have something else in the queue that will make these sed calls
obsolete.
> +hg diff | sed -e "s/\(\(+++\) [a-zA-Z0-9_/.-]*\).*/\1/" \
> + -e "s/\(\(---\) [a-zA-Z0-9_/.-]*\).*/\1/"
The inner \(\) will not be needed here.
> hg diff > ../d
> -sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" < ../d
> +cat ../d | sed -e "s/\(\(+++\) [a-zA-Z0-9_/.-]*\).*/\1/" \
> + -e "s/\(\(---\) [a-zA-Z0-9_/.-]*\).*/\1/"
Useless use of cat ... and maybe the useless use of a temporary
file, but I haven't looked at the context.
> -sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" < ../d
> +cat ../d | sed -e "s/\(\(+++\) [a-zA-Z0-9_/.-]*\).*/\1/" \
> + -e "s/\(\(---\) [a-zA-Z0-9_/.-]*\).*/\1/"
Same here.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list