* [LTP] [LTP|PATCH] du: bug fix for testcase/du/du01.sh
@ 2022-10-27 7:35 Hongling Zeng
2022-11-07 13:54 ` Richard Palethorpe
0 siblings, 1 reply; 2+ messages in thread
From: Hongling Zeng @ 2022-10-27 7:35 UTC (permalink / raw)
To: ltp; +Cc: zhongling0719, Hongling Zeng
The runltp interface test for command du report error :
du01 9 TFAIL: 'du -c' failed
du01 9 TINFO: Looking for '^10[2-3][0-9][0-9][[:space:]]total' in:
4 ./testdir
4 ./basedir
10256 .
10256 总用量
du01 10 TFAIL: 'du --total' failed
Add slective judgement for chinese command and fix this error.
Signed-off-by: zenghongling <zenghongling@kylinos.cn>
---
testcases/commands/du/du01.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/commands/du/du01.sh b/testcases/commands/du/du01.sh
index 7977fd4..a9c4377 100755
--- a/testcases/commands/du/du01.sh
+++ b/testcases/commands/du/du01.sh
@@ -74,7 +74,7 @@ check2="^10[2-3][0-9][0-9][[:space:]]testfile"
check3="^\(0\|${page_size}\)[[:space:]]\.\/testdir\/testsymlink"
check5="^20[4-6][0-9][0-9][[:space:]]\."
check7="^10[4-5][0-9][0-9]\{4\}[[:space:]]\."
-check9="^10[2-3][0-9][0-9][[:space:]]total"
+check9="^10[2-3][0-9][0-9][[:space:]][(总用量|total)]"
check11="^10[2-3][0-9][0-9][[:space:]]testdir\/testsymlink"
check14="^1[0,1]M[[:space:]]\."
check16="^10[2-3][0-9][0-9][[:space:]]testdir\/"
--
2.1.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [LTP|PATCH] du: bug fix for testcase/du/du01.sh
2022-10-27 7:35 [LTP] [LTP|PATCH] du: bug fix for testcase/du/du01.sh Hongling Zeng
@ 2022-11-07 13:54 ` Richard Palethorpe
0 siblings, 0 replies; 2+ messages in thread
From: Richard Palethorpe @ 2022-11-07 13:54 UTC (permalink / raw)
To: Hongling Zeng; +Cc: zhongling0719, ltp
Hello,
Hongling Zeng <zenghongling@kylinos.cn> writes:
> The runltp interface test for command du report error :
> du01 9 TFAIL: 'du -c' failed
> du01 9 TINFO: Looking for '^10[2-3][0-9][0-9][[:space:]]total' in:
> 4 ./testdir
> 4 ./basedir
> 10256 .
> 10256 总用量
> du01 10 TFAIL: 'du --total' failed
>
> Add slective judgement for chinese command and fix this error.
Hopefully this has been fixed already by setting LC_ALL=C.
9acdbed6ce0f0f996ae4f8da576968718326736c
tst_test.sh: Normalize the locale
Set to superseded in patchwork.
>
> Signed-off-by: zenghongling <zenghongling@kylinos.cn>
> ---
> testcases/commands/du/du01.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/commands/du/du01.sh b/testcases/commands/du/du01.sh
> index 7977fd4..a9c4377 100755
> --- a/testcases/commands/du/du01.sh
> +++ b/testcases/commands/du/du01.sh
> @@ -74,7 +74,7 @@ check2="^10[2-3][0-9][0-9][[:space:]]testfile"
> check3="^\(0\|${page_size}\)[[:space:]]\.\/testdir\/testsymlink"
> check5="^20[4-6][0-9][0-9][[:space:]]\."
> check7="^10[4-5][0-9][0-9]\{4\}[[:space:]]\."
> -check9="^10[2-3][0-9][0-9][[:space:]]total"
> +check9="^10[2-3][0-9][0-9][[:space:]][(总用量|total)]"
> check11="^10[2-3][0-9][0-9][[:space:]]testdir\/testsymlink"
> check14="^1[0,1]M[[:space:]]\."
> check16="^10[2-3][0-9][0-9][[:space:]]testdir\/"
> --
> 2.1.0
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-07 14:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 7:35 [LTP] [LTP|PATCH] du: bug fix for testcase/du/du01.sh Hongling Zeng
2022-11-07 13:54 ` Richard Palethorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox