[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: Re: [LTP] [PATCH] Always create a new expected output file,
From: Subrata Modak <subrata () linux ! vnet ! ibm ! com>
Date: 2008-12-31 5:59:45
Message-ID: 1230702468.5323.5.camel () subratamodak ! linux ! ibm ! com
[Download RAW message or body]
On Mon, 2008-12-29 at 14:36 +0100, Jiri Palecek > wrote:
> Hello,
>
> The expected output file in gzip_tests is made always by appending data to the \
> file. Because there are two tests in gzip_tests (each making its own exp file), the \
> second test ends up with concatenation of the two exp files, which doesn't work \
> well. This patch fixes that by truncating the file at the first write.
> Regards
> Jiri Palecek
>
> Signed-Off-By: Jiri Palecek <jpalecek@web.de>
Thanks.
Regards--
Subrata
> ---
> testcases/commands/gzip/gzip_tests.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/testcases/commands/gzip/gzip_tests.sh \
> b/testcases/commands/gzip/gzip_tests.sh index facd8de..0dd309f 100755
> --- a/testcases/commands/gzip/gzip_tests.sh
> +++ b/testcases/commands/gzip/gzip_tests.sh
> @@ -145,7 +145,7 @@ creat_expout()
> fcnt=0 # index into files created in loop
> RC=0 # return code from commands
>
> - echo "$dirname:" 1>>$LTPTMP/tst_gzip.exp
> + echo "$dirname:" 1>$LTPTMP/tst_gzip.exp
> echo "d.$dircnt" 1>>$LTPTMP/tst_gzip.exp
> while [ $dircnt -lt $numdirs ]
> do
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic