* [LTP] [PATCH] ttype: using TERRNO to macth errno
@ 2021-02-05 3:44 zhaogongyi
2021-02-05 4:38 ` Li Wang
0 siblings, 1 reply; 3+ messages in thread
From: zhaogongyi @ 2021-02-05 3:44 UTC (permalink / raw)
To: ltp
Hi Li
The problem of wrong usage of TTERRNO has been checked all of the project by my local script.
The problem of wrong usage of TERRNO will be fixed in my next patch.
Thank You
???: Li Wang [mailto:liwang@redhat.com]
????: 2021?2?5? 10:49
???: zhaogongyi <zhaogongyi@huawei.com>
??: LTP List <ltp@lists.linux.it>
??: Re: [LTP] [PATCH] ttype: using TERRNO to macth errno
Hi Gongyi,
Any possibility of finding a way to correct all of the unprecise res-flags in LTP tests?
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/f328e9a3/attachment.htm>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] [PATCH] ttype: using TERRNO to macth errno
2021-02-05 3:44 [LTP] [PATCH] ttype: using TERRNO to macth errno zhaogongyi
@ 2021-02-05 4:38 ` Li Wang
2021-02-05 8:43 ` [LTP] 答复: " zhaogongyi
0 siblings, 1 reply; 3+ messages in thread
From: Li Wang @ 2021-02-05 4:38 UTC (permalink / raw)
To: ltp
Hi Gongyi,
Thanks for your work!
That'd be awesome if you posting/sharing the method of your script too.
On Fri, Feb 5, 2021 at 11:44 AM zhaogongyi <zhaogongyi@huawei.com> wrote:
> Hi Li
>
>
>
> The problem of wrong usage of TTERRNO has been checked all of the project
> by my local script.
>
>
>
> The problem of wrong usage of TERRNO will be fixed in my next patch.
>
>
>
> Thank You
>
>
>
> *???:* Li Wang [mailto:liwang@redhat.com]
> *????:* 2021?2?5? 10:49
> *???:* zhaogongyi <zhaogongyi@huawei.com>
> *??:* LTP List <ltp@lists.linux.it>
> *??:* Re: [LTP] [PATCH] ttype: using TERRNO to macth errno
>
>
>
> Hi Gongyi,
>
>
>
> Any possibility of finding a way to correct all of the unprecise res-flags
> in LTP tests?
>
>
>
> --
>
> Regards,
>
> Li Wang
>
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/3ebd7674/attachment-0001.htm>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] 答复: [PATCH] ttype: using TERRNO to macth errno
2021-02-05 4:38 ` Li Wang
@ 2021-02-05 8:43 ` zhaogongyi
0 siblings, 0 replies; 3+ messages in thread
From: zhaogongyi @ 2021-02-05 8:43 UTC (permalink / raw)
To: ltp
Hi Li,
The check script may be as follows:
#!/bin/bash
grep TTERRNO . -rn -B 3 --exclude=grep.output --exclude=check.sh > grep.output
##Prepare for checking line by line
sed -i '1i\--' grep.output
do_check()
{
grep TEST $i && return 0
grep TST_RET $i && return 0
grep TST_ERR $i && return 0
grep TEST_RETURN $i && return 0
return 1
}
start=0
i=0
while read line
do
echo $line | grep \\\-\\\-
ret=$?
if [ $ret -eq 0 -a $start -eq 0 ];then
start=1
continue
fi
if [ $ret -eq 0 -a $start -eq 1 ];then
start=0
do_check $i
if [ $? -eq 0 ];then
rm $i
fi
let i=$i+1
continue
fi
echo $line >> $i
done < grep.output
Thank You
???: Li Wang [mailto:liwang@redhat.com]
????: 2021?2?5? 12:38
???: zhaogongyi <zhaogongyi@huawei.com>
??: LTP List <ltp@lists.linux.it>
??: Re: [LTP] [PATCH] ttype: using TERRNO to macth errno
Hi Gongyi,
Thanks for your work!
That'd be awesome if you posting/sharing the method of your script too.
On Fri, Feb 5, 2021 at 11:44 AM zhaogongyi <zhaogongyi@huawei.com<mailto:zhaogongyi@huawei.com>> wrote:
Hi Li
The problem of wrong usage of TTERRNO has been checked all of the project by my local script.
The problem of wrong usage of TERRNO will be fixed in my next patch.
Thank You
???: Li Wang [mailto:liwang@redhat.com<mailto:liwang@redhat.com>]
????: 2021?2?5? 10:49
???: zhaogongyi <zhaogongyi@huawei.com<mailto:zhaogongyi@huawei.com>>
??: LTP List <ltp@lists.linux.it<mailto:ltp@lists.linux.it>>
??: Re: [LTP] [PATCH] ttype: using TERRNO to macth errno
Hi Gongyi,
Any possibility of finding a way to correct all of the unprecise res-flags in LTP tests?
--
Regards,
Li Wang
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/06e3aaef/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check.sh
Type: application/octet-stream
Size: 602 bytes
Desc: check.sh
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210205/06e3aaef/attachment-0001.obj>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-05 8:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05 3:44 [LTP] [PATCH] ttype: using TERRNO to macth errno zhaogongyi
2021-02-05 4:38 ` Li Wang
2021-02-05 8:43 ` [LTP] 答复: " zhaogongyi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.