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 A7F23A052B; Thu, 30 Jul 2020 10:08:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 765F51023; Thu, 30 Jul 2020 10:08:53 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E2B443B5 for ; Thu, 30 Jul 2020 10:08:51 +0200 (CEST) IronPort-SDR: Wnu5BLgwUreXzBIbiI5zb6UMaMpOm5omHA7U1KbBdGhsWfIamW56vFoJGxsu67YGq2VHfhN3MM kGbVBsgJ8H1A== X-IronPort-AV: E=McAfee;i="6000,8403,9697"; a="169677429" X-IronPort-AV: E=Sophos;i="5.75,413,1589266800"; d="scan'208";a="169677429" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2020 01:08:50 -0700 IronPort-SDR: yVZrpLcHGV5uECR2PveYxx9/qX4L+RzIhrZuq0mp+d65p3afntmHoBGdE+AlPPyKGxjJH6lL/o BHLx/9DD4SBw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,413,1589266800"; d="scan'208";a="272861126" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by fmsmga007.fm.intel.com with ESMTP; 30 Jul 2020 01:08:49 -0700 From: LihongX Ma To: dts@dpdk.org Cc: "LihongX, Ma" Date: Thu, 30 Jul 2020 08:36:58 +0800 Message-Id: <1596069418-28850-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] framework/main: fix warning of syntax X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: "LihongX, Ma" when use python3.8, it will warning of cmd 'ret is not 0', fix this warning. Signed-off-by: LihongX Ma --- framework/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/main.py b/framework/main.py index b5e5952..f6e3ae9 100755 --- a/framework/main.py +++ b/framework/main.py @@ -59,13 +59,13 @@ def git_build_package(gitLabel, pkgName, depot="dep"): else: print("git clone %s %s/%s" % (gitURL, depot, gitPrefix)) ret = os.system("git clone %s %s/%s" % (gitURL, depot, gitPrefix)) - if ret is not 0: + if ret != 0: raise EnvironmentError print("git archive --format=tar.gz --prefix=%s %s -o %s" % (gitPrefix, gitLabel, pkgName)) ret = os.system("cd %s/%s && git archive --format=tar.gz --prefix=%s/ %s -o ../%s" % (depot, gitPrefix, gitPrefix, gitLabel, pkgName)) - if ret is not 0: + if ret != 0: raise EnvironmentError -- 2.7.4