Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3551BE00E95; Fri, 18 Sep 2015 08:29:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [67.231.149.52 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mx0a-00176a03.pphosted.com (mx0a-00176a03.pphosted.com [67.231.149.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7BB7DE00BF8 for ; Fri, 18 Sep 2015 08:29:36 -0700 (PDT) Received: from pps.filterd (m0047961.ppops.net [127.0.0.1]) by m0047961.ppops.net-00176a03. (8.15.0.59/8.15.0.59) with SMTP id t8IDjfw0029847 for ; Fri, 18 Sep 2015 09:46:57 -0400 Received: from cinmlip13.e2k.ad.ge.com (n165-156-000-000.static.ge.com [165.156.4.1] (may be forged)) by m0047961.ppops.net-00176a03. with ESMTP id 1wvfpbdu15-39 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Sep 2015 09:46:57 -0400 Received: from cinmlip01.e2k.ad.ge.com ([3.159.213.48]) by cinmlip13.e2k.ad.ge.com with ESMTP/TLS/RC4-SHA; 18 Sep 2015 09:46:46 -0400 Received: from unknown (HELO clipsmtp.clients.em.health.ge.com) ([3.187.7.87]) by CINMLIP01.e2k.ad.ge.com with ESMTP; 18 Sep 2015 09:46:44 -0400 Received: from macaroni.clients.em.health.ge.com (macaroni.clients.em.health.ge.com [3.187.18.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by clipsmtp.clients.em.health.ge.com (Postfix) with ESMTPSA id 82EB510BC303; Fri, 18 Sep 2015 16:42:12 +0300 (EEST) From: Ian Ray To: yocto@yoctoproject.org Date: Fri, 18 Sep 2015 16:42:09 +0300 Message-Id: <1442583729-21809-2-git-send-email-ian.ray@ge.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1442583729-21809-1-git-send-email-ian.ray@ge.com> References: <1442583729-21809-1-git-send-email-ian.ray@ge.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2015-09-18_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1507310000 definitions=main-1509180182 Subject: [PATCH 1/1] ptest: user-specified run-ptest script location X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 15:29:37 -0000 Provides a new variable, PTEST_RUN_SCRIPT_PATH, which points to a directory where the run-ptest script is located. This location defaults to the work directory but may be overridden within a recipe if a package ships its own run-ptest script. Signed-off-by: Ian Ray --- meta/classes/ptest.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index b5f470f..7d9d0cc 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -3,6 +3,7 @@ DESCRIPTION_${PN}-ptest ?= "${DESCRIPTION} \ This package contains a test directory ${PTEST_PATH} for package test purposes." PTEST_PATH ?= "${libdir}/${PN}/ptest" +PTEST_RUN_SCRIPT_PATH ??= "${WORKDIR}" FILES_${PN}-ptest = "${PTEST_PATH}" SECTION_${PN}-ptest = "devel" ALLOW_EMPTY_${PN}-ptest = "1" @@ -37,8 +38,8 @@ do_install_ptest() { } do_install_ptest_base() { - if [ -f ${WORKDIR}/run-ptest ]; then - install -D ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest + if [ -f ${PTEST_RUN_SCRIPT_PATH}/run-ptest ]; then + install -D ${PTEST_RUN_SCRIPT_PATH}/run-ptest ${D}${PTEST_PATH}/run-ptest if grep -q install-ptest: Makefile; then oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest fi -- 1.8.3.1