Author: gisle.aas
Date: Wed Oct 22 04:21:29 2008
New Revision: 534
Modified:
trunk/test.pl
Log:
Just pass on --open to nyprofhtml.
It's better to only have a single place to generalize this.
Modified: trunk/test.pl
==============================================================================
--- trunk/test.pl (original)
+++ trunk/test.pl Wed Oct 22 04:21:29 2008
@@ -155,9 +155,9 @@
verify_csv_report($test, $test_datafile, $outdir);
if ($opts{html}) {
- run_command("$perl $nytprofhtml --file=$profile_datafile
--out=$outdir");
- run_command("open $outdir/*.html")
- if $opts{open}; # possibly only useful on OS X
+ my $cmd = "$perl $nytprofhtml --file=$profile_datafile
--out=$outdir";
+ $cmd .= " --open" if $opts{open};
+ run_command($cmd);
}
}
else {
--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---