Should selftest success depend on verbosity?

John Arbash Meinel john at arbash-meinel.com
Sat Jun 20 04:06:11 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maritza Mendez wrote:
> 
> Ok.  I don't get this.  Please someone help me understand this.
> 
> System is jaunty jackelope x86_64 up to date and with PPA 1.15-1
> 
> _Observation #1_
> If I say
> 
>     bzr --no-plugins selftest test_http
> 
> testing stalls at
> 
>     test_http.TestAuth.test_wrong_pass(pycurl,HTTP/1.1,basicdigest)
> 
> _Observation #2_
> But if I say
> 
>     bzr --no-plugins selftest test_http -v
> 
> testing stalls at
> 
>     test_http.TestActivity.test_get(urllib,HTTP/1.0,https)
> 
> 
> _Observation #3_
> What's even more remarkable is that the test_wrong_pass which stalled
> the non-verbose run actually passes in verbose mode:
> 
>    
> test_http.TestAuth.test_wrong_pass(pycurl,HTTP/1.1,basicdigest)           
> OK                  49ms

Are you using the line written on stdout to determine what test is
running? IIRC that uses the 'progress_bar' code which is designed to
'debounce' the output. (It only updates the screen every 200ms or so.)
Since the test that is passing is only taking 49ms, and I would imagine
the next few tests are also probably fast, that in the end it is still
  test_http.TestAuth.test_wrong_pass(pycurl,HTTP/1.1,basicdigest)
which is hanging, it just didn't update the screen first.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko8UiMACgkQJdeBCYSNAAO4ygCfb6bj1QzmgTbFWD2Lud3ebRvX
JgwAn3EPr0qR8p3R+vB5egDbrVEc/yWE
=F8rG
-----END PGP SIGNATURE-----



More information about the bazaar mailing list