From patchwork Sat Apr 2 06:24:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 605388 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qcSsr4xKXz9ssP for ; Sat, 2 Apr 2016 17:25:20 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=tieto.com header.i=@tieto.com header.b=oCaARlHb; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1amEzU-0006Yw-Vt; Sat, 02 Apr 2016 06:25:00 +0000 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1amEzS-0006XB-2O for hostap@lists.infradead.org; Sat, 02 Apr 2016 06:24:59 +0000 Received: by mail-lb0-x234.google.com with SMTP id vo2so89132699lbb.1 for ; Fri, 01 Apr 2016 23:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lLqEBvbsyhd7URoTh4runa8RUb5IukXHH+xKFgUPBgg=; b=oCaARlHbwdIZk2sXUt4twYvfVIiYkFhrDbQSuP935VNqRXgEHaW4dMSEGa9C/9KTEw z4j9cqdQ820vaPqki0KMopZ289Al9qr/snQ47pLxkWzJ036rpzSwfYma0NW9lzr+IjhE UmWVfrfUbptvce44B7bv8TNbwElaIDaltMNkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lLqEBvbsyhd7URoTh4runa8RUb5IukXHH+xKFgUPBgg=; b=LHQsxLM6B6CUlNFfJH5gIc0U993G577NADyd5eSp949k0ppNXLqFM0DVJf66SBtPm0 9K6NcbsDbGtS+y9npFwVko6hGJ8ZkMAu+bpyXGmaV1nsTfEe7J6dDVsJj2YGvqWzNC8j jcrv2HWxi9QbwaUj90ku/Mw5MOLNzsI7a49z5psr/eX/47WS6JqEMLmGw6OYzFBTiAiT NHnLFW1+Vks3g1SR8/VXhp7oWia+drHL/5PTMZC3LATYGKcrz0oyqmeSm+XI9xj4Gkky Y3IOv+5WyvQUr0z80YVmbQsXw+Lr0nMG+GEf7ndcbiq6XMH+fyUI2fKPjKbAKHsrlDsZ mCCQ== X-Gm-Message-State: AD7BkJIjk9ue5SkK0mOK89Qly/QtTysQ0G7/Pr/tO4HcmcnBYi/+hr63mVnkH3P1gUxfdjcN0hxd2XfgBa/WoSY3LaKkspkCcWoyPEwkxPfCQitnhLrGSQO+AIOl2O9gDAqW8wZnPFlxFTmDUbPgGEuDdjN9VeeyBc24FWqW1LpMgZtBxXxao0FqM9WYmLy2XQXO X-Received: by 10.112.30.131 with SMTP id s3mr2720777lbh.124.1459578272139; Fri, 01 Apr 2016 23:24:32 -0700 (PDT) Received: from localhost.localdomain (host-62-141-193-85.swidnica.mm.pl. [62.141.193.85]) by smtp.gmail.com with ESMTPSA id xg1sm2751372lbb.10.2016.04.01.23.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 23:24:31 -0700 (PDT) From: Janusz Dziedzic To: hostap@lists.infradead.org Subject: [PATCH 2/2] tests: kill subprocess from test_ap_acs.py Date: Sat, 2 Apr 2016 08:24:22 +0200 Message-Id: <1459578262-6388-2-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459578262-6388-1-git-send-email-janusz.dziedzic@tieto.com> References: <1459578262-6388-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160401_232458_393290_8D105AF9 X-CRM114-Status: UNSURE ( 8.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c04:0:0:0:234 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j@w1.fi, Janusz Dziedzic MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Janusz Dziedzic --- tests/hwsim/test_ap_acs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_ap_acs.py b/tests/hwsim/test_ap_acs.py index 6d7b5dc..5654e91 100644 --- a/tests/hwsim/test_ap_acs.py +++ b/tests/hwsim/test_ap_acs.py @@ -6,7 +6,6 @@ import logging logger = logging.getLogger() -import subprocess import time import hostapd @@ -145,7 +144,8 @@ def test_ap_acs_5ghz(dev, apdev): dev[0].request("DISCONNECT") if hapd: hapd.request("DISABLE") - subprocess.call(['iw', 'reg', 'set', '00']) + hapd.host.execute("iw reg set 00") + dev[0].host.execute("iw reg set 00") dev[0].flush_scan_cache() def test_ap_acs_5ghz_40mhz(dev, apdev): @@ -174,7 +174,8 @@ def test_ap_acs_5ghz_40mhz(dev, apdev): dev[0].request("DISCONNECT") if hapd: hapd.request("DISABLE") - subprocess.call(['iw', 'reg', 'set', '00']) + hapd.host.execute("iw reg set 00") + dev[0].host.execute("iw reg set 00") dev[0].flush_scan_cache() def test_ap_acs_vht(dev, apdev): @@ -205,7 +206,8 @@ def test_ap_acs_vht(dev, apdev): dev[0].request("DISCONNECT") if hapd: hapd.request("DISABLE") - subprocess.call(['iw', 'reg', 'set', '00']) + hapd.host.execute("iw reg set 00") + dev[0].host.execute("iw reg set 00") dev[0].flush_scan_cache() def test_ap_acs_bias(dev, apdev):