From patchwork Fri Aug 14 17:21:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 11714917 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF191618 for ; Fri, 14 Aug 2020 17:27:33 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA4B420708 for ; Fri, 14 Aug 2020 17:27:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="S5h7qEMS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA4B420708 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=eu.citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k6dTN-00040C-9R; Fri, 14 Aug 2020 17:26:33 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k6dQi-00024H-0y for xen-devel@lists.xenproject.org; Fri, 14 Aug 2020 17:23:48 +0000 X-Inumbo-ID: e8fe2ef3-73ed-437b-9f28-16e53105f8cb Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e8fe2ef3-73ed-437b-9f28-16e53105f8cb; Fri, 14 Aug 2020 17:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1597425739; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=TQcIqqhFJdYsJk5BMaUT3ykNr/SrI/Z/YpnxsNoFOD0=; b=S5h7qEMS3QNYtw2m1bVexcC1+gi5OVUziYT27jMXipVgVOUnO4d2wsSx fhbMzrTegSizWhGefOi5F7/QY70FVpJyxmdNR978KksIJRSaKo1WUfZnc KNw14moBN0yQTy79WeXy6EHKwYtGdOsagUIuWqavtP4NdQDiiCQp2iqm0 E=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 13x5v+jN+N7cZeeL23w1/uVLruEaZDX2PvS1Bv/h4AYAyeBpFf/B+gq+xqzeB+qDtYrCXfVFnu gZfj7GBZIxapXcfPpRr0ZGlc/ceqdBEpRfm7+IocuNWp2+oKr8vQBhjqlTzTEA9+yR7YxyQBQb hFXTy4rrQ9503CK45bPzBhXP6Wka4F5ACTVtX9AD908rcXyd76lo6yGLC2oseULiDew0OAqZiK PO/QFex9tA7sQ9yc0CSD69keBbH+ZVMJQO6AgNrq3bvIcOZw+EIEpHEjcoWLo043AN2AHTc5yy 3j0= X-SBRS: 2.7 X-MesageID: 24725187 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.76,313,1592884800"; d="scan'208";a="24725187" From: Ian Jackson To: CC: Ian Jackson Subject: [OSSTEST PATCH 35/60] sg-report-job-history (nfc): Have main program decide HTML filename Date: Fri, 14 Aug 2020 18:21:40 +0100 Message-ID: <20200814172205.9624-36-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200814172205.9624-1-ian.jackson@eu.citrix.com> References: <20200814172205.9624-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Signed-off-by: Ian Jackson --- sg-report-job-history | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index 3307b281..3f10a74c 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -109,8 +109,8 @@ END } } -sub processjobbranch ($$) { - my ($j,$bra) = @_; +sub processjobbranch ($$$) { + my ($j,$bra,$html_file) = @_; my $buildsq= db_prepare(< $html_file.new" or die "$html_file $!"; @@ -305,7 +303,8 @@ foreach my $j (@jobs) { parallel_by_fork('sg-report-job-history', $maxjobs, \@tasks, sub { my ($task) = @_; my ($job, $branch) = split / /, $task; # $branch might be undef + my $html_file = sprintf "history/%s/%s.html", $job, ($branch // 'ALL'); db_retry($dbh_tests, [], sub { - processjobbranch($job, $branch); + processjobbranch($job, $branch, $html_file); }); });