On Thu, Jul 24, 2008 at 02:21:08PM -0700, Danek Duvall wrote:
> I'd agree with this improvement, though I wonder if people would go for
> 
>     api.t_catalog.py TestCatalog.testcatalogfmris2             pass
> 
> which would then allow you to simply copy/paste the first two words of the
> line and pass them to python:
> 
>     python api.t_catalog.py TestCatalog.testcatalogfmris2
> 
> to run that one testcase.  It's not a huge deal, and having them all
> immediately available is a lot better than what we have now, but this
> would be better yet, I think.  :)

OK, new webrev posted with the following changes:
- Add baseline files to the tree {cli,api}_baseline.txt
- Baseline files in machine readable format (instead of pkl)
        * One test per line, in the format: <test name>|<result>
- Flush stream in pkg5unittest.startTest()
- Changed output to reflect whether it matches against the baseline in the
  actual test result (i.e. fail (pass) style output)
- Changed display of module/class/testname in verbose mode to match the format
  suggested by Danek.

(And to do the last one I had to touch a lot of files since it requires
overriding the __str__() function of unittest.TestCase.  Now everything
inherits from pkg5unittest.Pkg5TestCase)

Link to new CR: http://cr.opensolaris.org/~bhall/bug-2627-1/

I'm still working on:
- Changes requested by Brock:
        * Dealing with multiple cmdline args
        * Displaying the exception/failure after a failed test

Thanks,
Brad
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to