[lintian] 02/02: r/harness: Have lintian create a performance log for each run
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit b27831153c85c4f8dd2c3781d84362158974279d
Author: Niels Thykier <niels@thykier.net>
Date: Thu Oct 16 17:25:04 2014 +0200
r/harness: Have lintian create a performance log for each run
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/harness | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/reporting/harness b/reporting/harness
index a668a1c..c18d997 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -111,15 +111,17 @@ delete($ENV{'LINTIAN_CFG'});
delete($ENV{'LINTIAN_ROOT'});
my $html_reports_cmd = "$LINTIAN_ROOT/reporting/html_reports";
-my ($log_file, $list_file, $lintian_log, $html_reports_log)
+my ($log_file, $list_file, $lintian_log, $lintian_perf_log,$html_reports_log)
= map {"$LOG_DIR/$_" }
- qw(harness.log changed-packages.list lintian.log html_reports.log);
+ qw(harness.log changed-packages.list lintian.log lintian-perf.log html_reports.log);
my $old_lintian_log = $lintian_log . '.old';
my @lintian_cmd = (
"$LINTIAN_ROOT/frontend/lintian",
@EXTRA_LINTIAN_OPTIONS,
qw(--no-cfg -I -E --pedantic -v --show-overrides),
qw(--exp-output=format=fullewi --packages-from-file -),
+ qw(--perf-debug --perf-output),
+ "+$lintian_perf_log",
);
my $STATE_DIR = $HARNESS_STATE_DIR;
my $START_TIME = time();
@@ -148,7 +150,8 @@ STDOUT->autoflush;
unless ($opt{'dry-run'}) {
# rotate log files
my %opt = ('out' => '/dev/null',);
- spawn(\%opt, ['savelog', $log_file, $html_reports_log])
+ my @rotate_logs = ($log_file, $html_reports_log, $lintian_perf_log);
+ spawn(\%opt, ['savelog', @rotate_logs])
or die "Cannot rotate log files.\n";
# create new log file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: