<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 4, 2019 at 2:40 PM Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">...</div><div class="gmail_quote"><div><div style="font-size:small">if the .needs_hugepages is set to an expected number, we should verify strictly if the system can provide that.</div></div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Oh, I guess maybe I misunderstand your suggestion here. you mean just to let .needs_hugepages = 1 but not set an expected number, right? if so, that will more easy to achieve.</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"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Also this fails to cleanup after itself, we have to restore the system<br>
after the test, which is one more reason why we need .needs_hugepages in<br>
the tst_test structure because the test library can cleanup after the<br>
test with that.<br></blockquote><div><br></div></div><div style="font-size:small">Agree, I will add the save/restore part for this.</div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Or just go with .save_restore in the testcase? </div></div><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></div></div>