Message ID | 1666856118-18962-1-git-send-email-zenghongling@kylinos.cn |
---|---|
State | Superseded |
Headers | show |
Series | [LTP|PATCH] du: bug fix for testcase/du/du01.sh | expand |
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
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\/"
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(-)