Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5049384ybv; Wed, 26 Feb 2020 07:34:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy9DQmXQRAjQL8j74KfPiorW3EPz0grPG1+JaIjiz110Kk+1uO2PdLb/NoroZcenZTWk2zy X-Received: by 2002:aca:d708:: with SMTP id o8mr3684631oig.5.1582731292765; Wed, 26 Feb 2020 07:34:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582731292; cv=none; d=google.com; s=arc-20160816; b=n2Zqwx666vJL8s8XaEDRtixDW5I0i13m0Fggan36rjrjNBT8yvLUiRCS9IFzPYa/DI niOgVTfEtnlKe0tZaOHPW4CHqM6Iu2lY/JCVvs7T1LAHvrRhhVHWf17f51Q9RYUH2ZW1 9m5pbItVPmkfL49E9A4whoi+1Gk1evP/JUCOifABHYcl/A8W0CtvSwGZwgLe8VFYo0ng Gx65m3edpgS/bj/3SQNe0/+e9IKzX2jDgYkJKH9SH3uIX4e0aMz71JVzOkVczr8j3KYx W/3hkUXGYCi1kLV0y2FBBxB3xUJqhcRddMRNuOaCBWbn+ogvQIBs1etaRGLhPvBM5v9S iV8A== 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; bh=oShq5VirmpyMXkozV2+GD8VsGFZEtdyKfSpl1TCn4qc=; b=PYsvQXCpH3PscRvim+ZwGBcruUJMy2nG6CoFPLHfPwv2RuzwVxyV/9GU0a+2KfkPzJ NFpkGA85O7+mv/iS8CNd/UXH+pnFqOn5lPTYLsY3m44r9FjKtEoF5vOYHJ73Hc0hkUM2 Ph4kSgOadL1vpFiA3VdnsrR0ygoVG/khDBnFLGIprCvZM/+KG1Gnz0EcYoddOdehkhSX HWJ0qCthuV/SbesrePv5/AjbYDgoZh7/Wsz32LuF9Mk4/L6h0GjaHP6vnW2+HVsFwId5 R63LwG4ojH3+rwopAIc3hFU9YwEb7JGmd7E9APrCBVnEv9ioEGyT7aBq1iVW6iz9wlv+ MDmg== ARC-Authentication-Results: i=1; mx.google.com; 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 z23si1474255oti.34.2020.02.26.07.34.39; Wed, 26 Feb 2020 07:34:52 -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; 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 S1728296AbgBZPeO (ORCPT + 99 others); Wed, 26 Feb 2020 10:34:14 -0500 Received: from www62.your-server.de ([213.133.104.62]:39488 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727348AbgBZPeO (ORCPT ); Wed, 26 Feb 2020 10:34:14 -0500 Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1j6yhM-0000ZO-4z; Wed, 26 Feb 2020 16:34:08 +0100 Received: from [2001:1620:665:0:5795:5b0a:e5d5:5944] (helo=linux-3.fritz.box) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6yhL-000Hiz-KN; Wed, 26 Feb 2020 16:34:07 +0100 Subject: Re: [PATCH bpf-next v3 5/5] selftests/bpf: Add test for "bpftool feature" command To: Michal Rostecki , bpf@vger.kernel.org Cc: Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Quentin Monnet , 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: Daniel Borkmann Message-ID: Date: Wed, 26 Feb 2020 16:34:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200225194446.20651-6-mrostecki@opensuse.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25734/Tue Feb 25 15:06:17 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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' ====================================================================== ERROR: test_feature_kernel (test_bpftool.TestBpftool) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", line 94, in test_feature_kernel bpftool_json(["feature", "probe", "kernel"]), 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' ====================================================================== ERROR: test_feature_kernel_full (test_bpftool.TestBpftool) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", line 122, in test_feature_kernel_full bpftool_json(["feature", "probe", "kernel", "full"]), 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' ====================================================================== ERROR: test_feature_kernel_full_vs_not_full (test_bpftool.TestBpftool) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", line 147, in test_feature_kernel_full_vs_not_full full_res = bpftool_json(["feature", "probe", "full"]) 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' ====================================================================== ERROR: test_feature_macros (test_bpftool.TestBpftool) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", line 177, in test_feature_macros res = bpftool(["feature", "probe", "macros"]) File "/root/bpf-next/tools/testing/selftests/bpf/test_bpftool.py", line 39, in bpftool return _bpftool(args, json=False).decode("utf-8") 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' ---------------------------------------------------------------------- Ran 5 tests in 0.001s FAILED (errors=5)