From patchwork Fri Dec 18 12:55:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 58660 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1006997lbb; Fri, 18 Dec 2015 04:56:21 -0800 (PST) X-Received: by 10.140.161.137 with SMTP id h131mr4841480qhh.57.1450443379783; Fri, 18 Dec 2015 04:56:19 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v83si16074224qhv.85.2015.12.18.04.56.17; Fri, 18 Dec 2015 04:56:19 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 09B4E61684; Fri, 18 Dec 2015 12:56:17 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=iF8swqgx; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id D701661658; Fri, 18 Dec 2015 12:56:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C73EE61662; Fri, 18 Dec 2015 12:56:10 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by lists.linaro.org (Postfix) with ESMTPS id 0D07961630 for ; Fri, 18 Dec 2015 12:56:10 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id l126so64485131wml.1 for ; Fri, 18 Dec 2015 04:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=eDmaeBQuasNZle2thcQ89opKWOZ2reBcuXYADhcbCLc=; b=iF8swqgx6McUalyn3JOH8CKPi0jE5KqKCvE+xQRFq98j9IsSBHllQj8+tqpBOMiSN1 bXr41QTSjixzMdnfD/uBzMp4LKZxxKMqQTnbozOo247BFN0KI2bKJn/LzZOPhWR9b1VV ou0/zy7cekB4ubcKOALES54BJZzOZ5ByTcIwU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=eDmaeBQuasNZle2thcQ89opKWOZ2reBcuXYADhcbCLc=; b=EVNXbB/hnKHfYekkt1SHUxJHfhYlJ2xseGYBE7w1n9p9FCP8PehJllheEj3rP36le7 83YTs5R5pK10ddsTP1cBnctjP4IMG/EPxbuXTaqWB/K+UVhSk47TwFFE+asipi1k1HnH LFA25Qsw5weJJBZ5cQPH1qtFnfb1kYsIm0f3Sc+BckrFXF2GfuVZnyTKTjc3vcgsp/ec vvcUFumj6aWBI2tAPP239DSoUoARvwxhWZfEZqQ0La7EtlO1q7O8jT7esWZLRjRRkUlF ijUbHv4LsfHpYhQqwoWgTyBxRijD8/eVE2OAnWXOvn+te0vGkxBbb+lZHBMYvM2Dzzn4 Axrg== X-Gm-Message-State: ALoCoQkmGizQl4TEqbafEzLzArTcX+rY1HQ1abr9p6caX62gShf4jEzmrk8/eev5cDbfaqOABQDapgKqrcZxUJFHeHtO7d5pBA== X-Received: by 10.28.138.6 with SMTP id m6mr3113090wmd.82.1450443369004; Fri, 18 Dec 2015 04:56:09 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id w4sm14729396wje.49.2015.12.18.04.56.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Dec 2015 04:56:04 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 18 Dec 2015 12:55:52 +0000 Message-Id: <1450443352-12711-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: validation: pktio: report test as skipped when setup fails X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" If setting up the veth interfaces used for validation testing of socket based pktios fails (e.g. CONFIG_VETH missing from the kernel), report the test as skipped. Previously the test would be run anyway, resulting in a lot of errors which aren't particularly easy to interpret. Signed-off-by: Stuart Haslam Reviewed-by: Christophe Milard --- platform/linux-generic/test/pktio/pktio_run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/linux-generic/test/pktio/pktio_run b/platform/linux-generic/test/pktio/pktio_run index 3f73556..7029ab2 100755 --- a/platform/linux-generic/test/pktio/pktio_run +++ b/platform/linux-generic/test/pktio/pktio_run @@ -87,6 +87,10 @@ run() # no interfaces specified, use default veth interfaces # setup by the pktio_env script setup_pktio_env clean + if [ $? != 0 ]; then + echo "Failed to setup test environment, skipping test." + exit $TEST_SKIPPED + fi export ODP_PKTIO_IF0=$IF0 export ODP_PKTIO_IF1=$IF1 fi