From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9614FA0564; Mon, 23 Mar 2020 21:00:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E2C4E1C0D1; Mon, 23 Mar 2020 21:00:03 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by dpdk.org (Postfix) with ESMTP id 384CD1C0C2 for ; Mon, 23 Mar 2020 21:00:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584993601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YcL+UhwQXgeQLa/9+Zs3miJ68WiWR7fHTtB1mSETqyM=; b=EpI7rJKW5rr6VHTG2qfvMLopcvmErZZVXxQyMYC4sIoUMCQXvnS9ka8aZqZSV86SsjdZoj qtTIPzZSzNWbgshx8EEgAltTNGhK9Ql4lAR5gz9Z+ON4V76Yo1tz0auqlIV5yMPRFdxd3n jgGkb+WG5RyrHvHMbLF1H7beyreSry4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-430-Vc-uul3sPRSfoQeguDF6_g-1; Mon, 23 Mar 2020 15:59:59 -0400 X-MC-Unique: Vc-uul3sPRSfoQeguDF6_g-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 652178017CE; Mon, 23 Mar 2020 19:59:58 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id A41A01001938; Mon, 23 Mar 2020 19:59:56 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: aconole@redhat.com, ruifeng.wang@arm.com, maicolgabriel@hotmail.com, bruce.richardson@intel.com, Gavin Hu Date: Mon, 23 Mar 2020 20:59:25 +0100 Message-Id: <20200323195926.12182-5-david.marchand@redhat.com> In-Reply-To: <20200323195926.12182-1-david.marchand@redhat.com> References: <20200323195926.12182-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH v4 4/5] ci: run tests even without hugepage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Ruifeng Wang As fast-tests suite generated with only applicable cases included, hugepage is not a mandatory to run the test. Ignore the result of hugepage set up, so that validation in environment without hugepage can proceed. Signed-off-by: Ruifeng Wang Reviewed-by: Gavin Hu Acked-by: Aaron Conole --- .ci/linux-setup.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.ci/linux-setup.sh b/.ci/linux-setup.sh index 2b07d1e0b2..5d3089cadd 100755 --- a/.ci/linux-setup.sh +++ b/.ci/linux-setup.sh @@ -3,10 +3,7 @@ # need to install as 'root' since some of the unit tests won't run without= it sudo python3 -m pip install --upgrade 'meson=3D=3D0.47.1' =20 -# skip hugepage settings if tests will not run -if [ "$RUN_TESTS" =3D "1" ]; then - # setup hugepages - cat /proc/meminfo - sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' - cat /proc/meminfo -fi +# setup hugepages. error ignored because having hugepage is not mandatory. +cat /proc/meminfo +sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' || true +cat /proc/meminfo --=20 2.23.0