Steffen Schwigon wrote: > Somewhat related to Andy Lesters problem some days ago about the TAP > of "prove --verbose" should not be touched. > > Is it possible to make the output "idempotent", i.e., that I can take > the output of "prove --verbose" and parse it again with same results? > > In particular the finally added "ok" line should not be printed, or > only with --normalize.
... > Skipping the "ok" line lets it PASS again and again. > I need it when I archive TAP output and re-evaluate it later. Trying to parse the mix of TAP and prove output is never going to work right. You're risking that none of the prove output will be valid TAP. Even if that "ok" line is removed something else will mess it up later. I think what you really want is a switch to output just the TAP and none of prove's stuff. That's the --archive option. However, it doesn't seem to DWIM. $ prove -a test.out -l t/Builder/ok_obj.t Archive is not a known format type! at /usr/local/perl/5.10.0/lib/5.10.0/App/Prove.pm line 485 Seems it only supports tarballs. $ prove --archive=test.tgz -l t/Builder/ok_obj.t t/Builder/ok_obj....ok All tests successful. Files=1, Tests=4, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.02 cusr 0.00 csys = 0.04 CPU) Result: PASS TAP Archive created at /Users/schwern/devel/Test-Simple/test.tgz -- 125. Two drink limit does not mean two kinds of drinks. -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/