From patchwork Fri Feb 8 10:09:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 1038548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="h7ELfSHb"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UL9y/Usk"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43wrWy2Xwhz9sLw for ; Fri, 8 Feb 2019 21:09:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=55C6cABmB2idBhdvgL8sci8cWnv/8SwoWsAyVInutlA=; b=h7E LfSHb01pR+qBX8awDeq9+KyEuM1qhHBS28i3SXNx6HE82UWq6I0qwJBWmHnM1PvHtmNl9O/UVpXtY HttVj4Q6BWz8E5YTZxXuveddvhY8qiwyqnglIYr5Rx4zNjHMftEH8qe5EXCE0DkTjluSfLG4LPdIJ E3QAwJODi2vd3Nsg2TO+lNN7MrN2OfjmuMUXW7zrJKuMrKxrFedbWV7CFs3hepXtw9s09pAy11bs/ Q+3l+tKBkZY5ZFVyW4o6u42mGiQZyDYhc874sntNrprLpDyB0Q134j9SaRs41rpu9LVT4EVi8rrys nre0Vm6RrlPgO/VEBUFnvFDhAtmuvfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs36J-0002pE-C3; Fri, 08 Feb 2019 10:09:39 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs36G-0002oL-8S for hostap@lists.infradead.org; Fri, 08 Feb 2019 10:09:37 +0000 Received: by mail-pl1-x632.google.com with SMTP id b5so1485668plr.4 for ; Fri, 08 Feb 2019 02:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LPiLs245XCHkO1zIMhZtRa0pet7kJrzy8PvBSephqxI=; b=UL9y/UskbqGUtIMydU2fgzOV7RPsFQYZc0QBys0vs1lIg7KIROiCeWA+xyFiuvrX5u pA6TFxsOoEntgELmpS9hT/Rp8ilSkA7jvII/cACl80/asImcayOB3wZv+S0PZxDHht+S cKFnVh5IPzBsmqkCFRFdc5osue6NzZMC4uMgcoyD/2yRAxkcdAAmWg5Y27rNIciJ9rMv 6oxgJcSdP8pySQtZ3d/8B5PWwMiBLHYGatEUUFpB6KeM0DLT1BCTELRq3rYTn0v45NfH 3l1hc+tJG1k0E1Ra/gDwzAW/S2WfxPDLUCjHu/NNOjP4zGkF3dgRFMDkmErzP6mjkQHI kW3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LPiLs245XCHkO1zIMhZtRa0pet7kJrzy8PvBSephqxI=; b=ebDgk4StUN2n+JqoEl/TPvrHlJU1A9a/cZPdAc/+LI8H5/n+0lW+6w2BRL4M+GkJxH lQ4BeQQPAQbP9OQJiZUMBRWiIss2aokkOvJ0T+EI5Fu9mewDC4wO8E0r+y/SDfhrUdwM RfauZpPV3Kt5OG9LfKYSPAFfFylWuYA4SuOrnVMc8wrEifiBaz0qAuymIaby5RBvUb1i MxQtVWXB91yAlmjXMEAaqpqtM6MXAyIDDTr+2I5jn/x99XWTEen8RoTTricrlJNVZWZR RhRy3Ri3ACf3SOYrqSisgzWqPK9n/+5Yz5nLgy3FSDtjQ+IfkGJV9ekdh1a1pHsaqKX3 ghHA== X-Gm-Message-State: AHQUAuZXnFbghn7Hq0lIa8eCjWmnj6Iggig1VPxwbYZoZJvCIEbPpdJS 5ih3zIbydEh4BjZgdzrPqPKR8jmL X-Google-Smtp-Source: AHgI3IawOvJyEMUwrbGYhVMO7GBn9qxheuauInnAXRx7XuE5UfrA3+ahzvLUBD9IWtyOhoaQPBRoUg== X-Received: by 2002:a17:902:9b96:: with SMTP id y22mr7986171plp.179.1549620574605; Fri, 08 Feb 2019 02:09:34 -0800 (PST) Received: from gtx740.flets-east.jp ([2409:11:321:2100:cd64:9b14:d322:b9e9]) by smtp.gmail.com with ESMTPSA id e11sm1671278pgs.53.2019.02.08.02.09.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 02:09:33 -0800 (PST) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH 1/4] tests: Decode VM output for python3 Date: Fri, 8 Feb 2019 19:09:19 +0900 Message-Id: <20190208100922.19888-1-masashi.honma@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_020936_333800_7D67719B X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:632 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (masashi.honma[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masashi Honma MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Masashi Honma --- tests/hwsim/vm/parallel-vm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py index cf7f8df65..f8bb64872 100755 --- a/tests/hwsim/vm/parallel-vm.py +++ b/tests/hwsim/vm/parallel-vm.py @@ -90,7 +90,7 @@ def vm_read_stdout(vm, i): ready = False try: - out = vm['proc'].stdout.read() + out = vm['proc'].stdout.read().decode() except: return False logger.debug("VM[%d] stdout.read[%s]" % (i, out)) @@ -191,7 +191,7 @@ def show_progress(scr): running = True first_running = True try: - err = vm[i]['proc'].stderr.read() + err = vm[i]['proc'].stderr.read().decode() vm[i]['err'] += err logger.debug("VM[%d] stderr.read[%s]" % (i, err)) except: @@ -400,7 +400,7 @@ def main(): cmd += args.testmodules lst = subprocess.Popen(cmd, stdout=subprocess.PIPE) for l in lst.stdout.readlines(): - name = l.split(' ')[0] + name = l.decode().split(' ')[0] tests.append(name) if len(tests) == 0: sys.exit("No test cases selected")