<div dir="ltr">Hi devs,<div><br></div><div>I want to write a test that expected to fail. And I want to check the error message. But I found that if the command exit code is not 0, then the test will fail. Also, if I add `XFAIL: *`, it will not check the command line output ... Can someone help me?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Best Regards,<div>Xing</div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>