<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Aug 17, 2017 at 10:00 AM pengyixiang <<a href="mailto:yxpengi386@163.com">yxpengi386@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hello, everyone!<br><br>I run<br># ./run_tests.sh *.py<br>in<br>vdsm/tests/<br></div></div></blockquote><div><br></div><div>This is not a good way to run the tests:</div><div>1. This tests installed vdsm instead of the source you may have modified</div><div>2. This tests only the test modules in tests/, but we have many other tests</div><div> in test/ sub directories</div><div>3. This includes all python files (e.g. loopback.py) instead of the tests modules</div><div> (e.g *_test.py) </div><div>4. If you did not run make before this, you may be missing some generated</div><div> files.</div><div><br></div><div>To run all tests you should use "make check"</div><div><br></div><div>To run specific test module, use "./run_tests_local.sh module_name_test.py</div><div><br></div><div>See tests/README for the details.</div><div><br></div><div>Nir</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br>but there's some failures as follows, What may caused it ? <br><br><br>======================================================================<br>FAIL: test_close (better_asyncore_test.TestEvent)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/vdsm/tests/better_asyncore_test.py", line 38, in test_close<br> self.assertFalse(event.closing)<br>AssertionError: True is not false<br><br>======================================================================<br>FAIL: test_close (better_asyncore_test.TestReactor)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/vdsm/tests/better_asyncore_test.py", line 68, in test_close<br> self.assertFalse(reactor._wakeupEvent.closing)<br>AssertionError: True is not false<br>-------------------- >> begin captured logging << --------------------<br>2017-08-17 14:38:45,071 DEBUG [root] (test ractor) START thread <Thread(test ractor, started daemon 140473908700928)> (func=<bound method Reactor.process_requests of <yajsonrpc.betterAsyncore.Reactor object at 0x7fc2a16e8190>>, args=(), kwargs={})<br>2017-08-17 14:38:45,072 DEBUG [root] (test ractor) FINISH thread <Thread(test ractor, started daemon 140473908700928)><br>--------------------- >> end captured logging << ---------------------<br><br>======================================================================<br>FAIL: Verify that the connection with a valid client certificate<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/vdsm/tests/ssl_test.py", line 247, in testConnectWithCertificateSucceeds<br> self.assertEqual(rc, 0)<br>AssertionError: 1 != 0<br>-------------------- >> begin captured stdout << ---------------------<br>command=['openssl', 's_client', '-connect', '<a href="http://127.0.0.1:8443" target="_blank">127.0.0.1:8443</a>', '-cert', '/tmp/tmps23UUW', '-key', '/tmp/tmpvY6GzG']<br>rc=1<br>out=CONNECTED(00000003)<br>---<br>no peer certificate available<br>---<br>No client certificate CA names sent<br>---<br>SSL handshake has read 0 bytes and written 289 bytes<br>---<br>New, (NONE), Cipher is (NONE)<br>Secure Renegotiation IS NOT supported<br>Compression: NONE<br>Expansion: NONE<br>SSL-Session:<br> Protocol : TLSv1.2<br> Cipher : 0000<br> Session-ID: <br> Session-ID-ctx: <br> Master-Key: <br> Key-Arg : None<br> PSK identity: None<br> PSK identity hint: None<br> SRP username: None<br> Start Time: 1502951954<br> Timeout : 300 (sec)<br> Verify return code: 0 (ok)<br>---<br><br>err=write:errno=104<br><br><br>--------------------- >> end captured stdout << ----------------------<br><br>======================================================================<br>FAIL: Verify that SSL the session identifier is preserved when<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/vdsm/tests/ssl_test.py", line 269, in testSessionIsCached<br> self.assertEqual(rc, 0)<br>AssertionError: 1 != 0<br>-------------------- >> begin captured stdout << ---------------------<br>command=['openssl', 's_client', '-connect', '<a href="http://127.0.0.1:8443" target="_blank">127.0.0.1:8443</a>', '-cert', '/tmp/tmpTmZHrO', '-key', '/tmp/tmpK49hsw', '-sess_out', '/tmp/tmpI9Oa_A']<br>rc=1<br>out=CONNECTED(00000003)<br>---<br>no peer certificate available<br>---<br>No client certificate CA names sent<br>---<br>SSL handshake has read 0 bytes and written 289 bytes<br>---<br>New, (NONE), Cipher is (NONE)<br>Secure Renegotiation IS NOT supported<br>Compression: NONE<br>Expansion: NONE<br>SSL-Session:<br> Protocol : TLSv1.2<br> Cipher : 0000<br> Session-ID: <br> Session-ID-ctx: <br> Master-Key: <br> Key-Arg : None<br> PSK identity: None<br> PSK identity hint: None<br> SRP username: None<br> Start Time: 1502951958<br> Timeout : 300 (sec)<br> Verify return code: 0 (ok)<br>---<br><br>err=write:errno=104<br><br><br>--------------------- >> end captured stdout << ----------------------<br><br>----------------------------------------------------------------------<br>Ran 2866 tests in 131.761s<br><br>FAILED (SKIP=164, failures=4)<br><br></div></div><br><br><span title="neteasefooter"><p> </p></span>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></blockquote></div></div>