From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 5/6] Other-revision-jobs: Provide other_revision_job_suffix Date: Fri, 28 Aug 2015 17:34:00 +0100 Message-ID: <1440779641-22477-5-git-send-email-ian.jackson@eu.citrix.com> References: <1440779641-22477-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZVMbZ-00039r-Vv for xen-devel@lists.xenproject.org; Fri, 28 Aug 2015 16:34:18 +0000 In-Reply-To: <1440779641-22477-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This is a string, a function of the job name, that identifies the class of `other revisions'. It is empty for main-revision jobs and currently there is only `prev' for build-*-prev. We are going to use this in the bisector. Reimplement main_revision_job_cond in terms of this. No functional change, except that the SQL optimiser may have more work to do. Signed-off-by: Ian Jackson --- Osstest.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Osstest.pm b/Osstest.pm index 55e1aa1..1fe16fc 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -35,7 +35,7 @@ BEGIN { getmethod postfork flight_otherjob - main_revision_job_cond + main_revision_job_cond other_revision_job_suffix $dbh_tests db_retry db_retry_retry db_retry_abort db_begin_work db_prepare ensuredir get_filecontents_core_quiet system_checked @@ -318,9 +318,19 @@ sub flight_otherjob ($$) { die "$otherflightjob ?"; } +sub other_revision_job_suffix ($$) { + my ($jobfield, $separator) = @_; + return < undef -- 1.7.10.4