<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alexey Kodanev <<a href="mailto:alexey.kodanev@oracle.com">alexey.kodanev@oracle.com</a>> wrote:<br></div><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--- a/testcases/network/nfs/nfs_stress/nfs_lib.sh<br>
+++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh<br>
@@ -87,11 +87,17 @@ nfs_mount()<br>
<br>
        tst_res TINFO "Mounting NFS: $mnt_cmd"<br>
        if [ -n "$LTP_NETNS" ] && [ -z "$LTP_NFS_NETNS_USE_LO" ]; then<br>
-               <span class="gmail_default" style="font-size:small"></span>tst_rhost_run -s -c "$mnt_cmd"<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Or, maybe we can have a new function naming as 'tst_kconifg_check' to parse kernel .config in shell library as well?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">i.e</div><div class="gmail_default" style="font-size:small">    tst_kconfig_check "NFS_DISABLE_UDP_SUPPORT=y"</div><div class="gmail_default" style="font-size:small">    if [$? -qe 0 ]; then</div><div class="gmail_default" style="font-size:small">        <span class="gmail_default"></span>tst_rhost_run -s -c "$mnt_cmd"</div><div class="gmail_default" style="font-size:small">    else</div><div class="gmail_default" style="font-size:small">        exit with TCONF ...</div><br></div><div><div class="gmail_default" style="font-size:small">What do you think?</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-               return<br>
+               tst_rhost_run -c "$mnt_cmd"<br>
+       else<br>
+               $mnt_cmd > /dev/null<br>
        fi<br>
<br>
-       ROD $mnt_cmd<br>
+       if [ $? -ne 0 ]; then<br>
+               if [ "$type" = "udp" -o "$type" = "udp6" ] && tst_kvcmp -ge 5.6; then<br>
+                       tst_brk TCONF "UDP support disabled with the kernel config NFS_DISABLE_UDP_SUPPORT?"<br>
+               fi<br>
+               tst_brk TBROK "mount command failed"<br>
+       fi<br>
 }<br>
<br>
 nfs_setup()<br>
-- <br>
2.20.1<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>