Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp31ybf; Wed, 26 Feb 2020 07:44:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwIQPhopHIZLyB2Mji5/rBOLGvhx4GmYq807l2iKbRCTnIeIuouUbgtewzS+3K2BkY4NYez X-Received: by 2002:a9d:268:: with SMTP id 95mr3699054otb.183.1582731874355; Wed, 26 Feb 2020 07:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582731874; cv=none; d=google.com; s=arc-20160816; b=mEdMOy95aPtN+zatRKMp1owXkqckxH+Vc/mSjSRURntqk+rMPfaOuN53SLWcFKuPVW Gue5f4eb/qRVPY+vAsFgrWyDSf6ymlIaIU2gjWWN4EPiqH7K8lUnqj2pseNgC/3LDyCl nNZiYF4wp1ZzACF1Ka3DdB16ymsMGgQe/dKEIrp8+8zlvbrc/F1BIerREmmRIGcOC/pc 10J8YsfNlbWB9MDz37zn0gMAT9nhZYY7uFs3Dvy9P2H3ebmbSim+6+HQt2evnpKvBLOV Nt+Vk6qvi9d3yclKfe2WfGANdhR0xQpTpJrq3yfwuHXeui6JGCdkGyZGdK8XdlYGiWuo 4vtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=I5/BA7YsbH1T9sgkRZT9CG8Y5s0Fng9eOPPb7ZuWHYE=; b=00BgDA5UuxrK997IWIsSo0KbE6lkzXMFSFGwcHcmnaRO4Rs2hngGDTEEpevRtafKRG fJSIv2KmcOU7K6jLeKgiDwwBuS4IFMg0gweEcy9uxT2H72Me9Uuii9StYjoSPu8O2Lcs tNJTpTmZLQP1iViIpbqfFPGL27husyX6QPXojWpH1BOJWaXMaxu0EXe7pGVNhUw4WP46 Kbg++Q5GZINNKdQe9Nu5Ag3rKo7KY4o9H888/ZrNmy24JtuX1dwGdL0nFXHKP/atbGbH 7MM6JdiO7KhmbwI9DtF5oRrRGpjjh60npBp1idrY6P3rhT4kEhG32jLahy3lz1x3op47 guWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20150623.gappssmtp.com header.s=20150623 header.b=h0CZuuEJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1422823otp.292.2020.02.26.07.44.20; Wed, 26 Feb 2020 07:44:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@isovalent-com.20150623.gappssmtp.com header.s=20150623 header.b=h0CZuuEJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728429AbgBZPn2 (ORCPT + 99 others); Wed, 26 Feb 2020 10:43:28 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54313 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727855AbgBZPn2 (ORCPT ); Wed, 26 Feb 2020 10:43:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id z12so3589950wmi.4 for ; Wed, 26 Feb 2020 07:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=I5/BA7YsbH1T9sgkRZT9CG8Y5s0Fng9eOPPb7ZuWHYE=; b=h0CZuuEJRdVegqyi13c89qiGXx60eLvFkx/GwHshqfyg1vU877SDUzDDB7+QbtC1W4 IhZXFnKEfR6MW0VSVVOY+sD9tqlAd3SGcdRXz/PyPZ0jdPpGRsh2lcvncF42WgrK27QA 18DpuPtuP6ADT4RB6IyZtgqcVTX3AyvYrzENEk1ViR0tR3gsqakChr/D4VcH1LaAL9Gk CRBXOTzhlF30dp3sFSmjBlEtQdmwO4QP+HtcY9ByqIueXHuhOxr+7aW2BmhWQ+tGZu+6 Ct7qXdZCDPqKlJlnDVNVP8qqZkPvyqzBNWIVMTbxgiySJl2kSbTgfMzHdVSAMMMibvHi yYbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=I5/BA7YsbH1T9sgkRZT9CG8Y5s0Fng9eOPPb7ZuWHYE=; b=Hdw3Wwgs65uHzaWE8hkLnyOz5PKdAz7/OHRpmdf4HFeY1ZwukapiLjytgun/uPKwoo C8pW0V7XVQkcpjV2CpmjY6pL7zmvljyAq9iZ82HbscBTVxpItqoG6d8OKYxfBeiJPW4w i7J1Bq64Tr4qgfXjSb5s7+X1zBUD3ZHnHaqEp7f2RemUDTZM7PifWq+obJR2KFdE+043 2iKEKsHy6g6WCw/QfQKWA8Y7t9Fa9grwwW04lK8dTvE4qrLpDjHBv018Liti5WRHlgpt fP8fRH3rm6XbdoQKOG9r7gzSs8skawrBDLdh6eRuIGEcy2FeaK79nwUiCNPy5mxuP1+Y b27w== X-Gm-Message-State: APjAAAWnoJv4uvJUTmMhLekerTtF0Z1YYRAL0z2/qmjWvt8yxTzrcEao FsxIfMHGRSJN24HzWeBU5QaTSA== X-Received: by 2002:a05:600c:211:: with SMTP id 17mr6214941wmi.60.1582731806522; Wed, 26 Feb 2020 07:43:26 -0800 (PST) Received: from [192.168.1.10] ([194.35.116.65]) by smtp.gmail.com with ESMTPSA id s139sm3528634wme.35.2020.02.26.07.43.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Feb 2020 07:43:25 -0800 (PST) Subject: Re: [PATCH bpf-next v3 5/5] selftests/bpf: Add test for "bpftool feature" command To: Daniel Borkmann , Michal Rostecki , bpf@vger.kernel.org Cc: Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , "David S. Miller" , Jesper Dangaard Brouer , John Fastabend , linux-kselftest@vger.kernel.org References: <20200225194446.20651-1-mrostecki@opensuse.org> <20200225194446.20651-6-mrostecki@opensuse.org> From: Quentin Monnet Message-ID: <3e485c13-e478-c0b3-39e4-595dbd968ea2@isovalent.com> Date: Wed, 26 Feb 2020 15:43:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020-02-26 16:34 UTC+0100 ~ Daniel Borkmann > On 2/25/20 8:44 PM, Michal Rostecki wrote: >> Add Python module with tests for "bpftool feature" command, which mainly >> wheck whether the "full" option is working properly. > > nit, typo: wheck > >> >> Signed-off-by: Michal Rostecki > > Ptal, when running the test I'm getting the following error: > > root@tank:~/bpf-next/tools/testing/selftests/bpf# ./test_bpftool.sh > test_feature_dev_json (test_bpftool.TestBpftool) ... ERROR > test_feature_kernel (test_bpftool.TestBpftool) ... ERROR > test_feature_kernel_full (test_bpftool.TestBpftool) ... ERROR > test_feature_kernel_full_vs_not_full (test_bpftool.TestBpftool) ... ERROR > test_feature_macros (test_bpftool.TestBpftool) ... ERROR > > ====================================================================== > ERROR: test_feature_dev_json (test_bpftool.TestBpftool) > ---------------------------------------------------------------------- > Traceback (most recent call last): >   File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", > line 58, in wrapper >     return f(*args, iface, **kwargs) >   File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", > line 83, in test_feature_dev_json >     res = bpftool_json(["feature", "probe", "dev", iface]) >   File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", > line 43, in bpftool_json >     res = _bpftool(args) >   File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", > line 34, in _bpftool >     res = subprocess.run(_args, capture_output=True) >   File "/usr/lib/python3.6/subprocess.py", line 423, in run >     with Popen(*popenargs, **kwargs) as process: > TypeError: __init__() got an unexpected keyword argument 'capture_output' Apparently the “capture_output” option for subprocess was added to python 3.7 [0]. It worked on my system (python 3.7.5) but didn't pass on yours with 3.6. Michal, can you change it to something less recent please, so that people don't have to upgrade python to test? Quentin [0] https://docs.python.org/3/whatsnew/3.7.html#subprocess