run-tests fails on RHS 9

Andrew Thompson andrewkt at aktzero.com
Tue Jul 26 13:36:43 UTC 2005


Soh Tk-r28629 wrote:
>> I tried to run test per tests/README on Redhat 9 with Python 2.4, but got
>> 22 fails of out of 28 tests, plus some errors:
>>
>>   rm: too few arguments
>>   Try `rm --help' for more information.
>>   .Usage: mktemp [-d] [-q] [-u] template
>>   mktemp failed!
>>
>> Anything wrong on my installation?

It looks like template isn't an optional argument. I guess that's fine 
since I have an old slackware box that doesn't take the -d option. :(

> I was able to get 26/28 tests to pass after making the following change. Bug in tests/run-tests ?
> 
> diff -r 0de223012086 tests/run-tests
> --- a/tests/run-tests   Sat Jul 23 19:11:49 2005
> +++ b/tests/run-tests   Tue Jul 26 11:59:56 2005
> @@ -47,7 +47,7 @@
>  {   
>      rm -f $1.err
>      export TZ=GMT
> -    D=`mktemp -d`
> +    D=`mktemp -d /tmp/temp.XXXXXX`
>      if [ "$D" = "" ] ; then
>         echo mktemp failed!
>      fi

That works fine on my box.

-- 
Andrew Thompson
http://aktzero.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: andrewkt.vcf
Type: text/x-vcard
Size: 153 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050726/8ce92900/attachment-0001.vcf>


More information about the Mercurial mailing list