From patchwork Thu Sep 14 20:06:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 813929 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.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xtV1R28F0z9s78 for ; Fri, 15 Sep 2017 06:07:07 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E5F6FC21E4C; Thu, 14 Sep 2017 20:07:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A7A84C21C5D; Thu, 14 Sep 2017 20:07:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E6DE1C21C5D; Thu, 14 Sep 2017 20:06:58 +0000 (UTC) Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by lists.denx.de (Postfix) with ESMTP id 91ED2C21C6D for ; Thu, 14 Sep 2017 20:06:58 +0000 (UTC) Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Forcepoint Email with ESMTPS id 20958D65C5BA5; Thu, 14 Sep 2017 21:06:53 +0100 (IST) Received: from localhost (10.20.1.88) by hhmail02.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Thu, 14 Sep 2017 21:06:57 +0100 From: Paul Burton To: Date: Thu, 14 Sep 2017 13:06:26 -0700 Message-ID: <20170914200634.17818-1-paul.burton@imgtec.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-Originating-IP: [10.20.1.88] Cc: Stephen Warren , Michal Simek , =?utf-8?q?Stefan_Br=C3=BCns?= Subject: [U-Boot] [PATCH 0/8] test/py: Fixes for python 3.x X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This series allows test/py to run on python 3.x in addition to the already supported python 2.x. With it applied I currently see only one failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python related when running with: $ ./test/py/test.py --bd sandbox --build Thanks, Paul Paul Burton (8): test/py: Make print statements python 3.x safe test/py: Use range() rather than xrange() test/py: Import 'configparser' lower case to be python 3.x safe test/py: Import StringIO from io module for python 3.x test/py: Encode/decode strings for stdio test/py: fit: Open files as binary files test/py: hush_if_test: Use open() in place of file() test/py: vboot: Remove stderr redirect from openssl command test/py/conftest.py | 16 ++++++++++++---- test/py/multiplexed_log.py | 4 ++-- test/py/test.py | 6 ++++-- test/py/tests/test_fit.py | 14 ++++++++------ test/py/tests/test_hush_if_test.py | 2 +- test/py/tests/test_ut.py | 2 +- test/py/tests/test_vboot.py | 4 ++-- test/py/u_boot_console_sandbox.py | 4 ++-- test/py/u_boot_spawn.py | 12 ++++++------ test/py/u_boot_utils.py | 4 ++-- 10 files changed, 40 insertions(+), 28 deletions(-)