From patchwork Sun Oct 20 13:21:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1179997 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="Ri/Hy8Uo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46x0lY3vgBz9sP3 for ; Mon, 21 Oct 2019 00:21:13 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 84EDCC21D9A; Sun, 20 Oct 2019 13:21:07 +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=FREEMAIL_FROM, T_DKIM_INVALID 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 27A5CC21C2C; Sun, 20 Oct 2019 13:21:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5792BC21C2C; Sun, 20 Oct 2019 13:21:05 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lists.denx.de (Postfix) with ESMTPS id EFDF2C21BE5 for ; Sun, 20 Oct 2019 13:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571577664; bh=FIPLqyTv1drlNMl/kv3mpxcT2W7Me46MvIo3ZPwWZL8=; h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To; b=Ri/Hy8Uo1VdrZadZZEsc9QY5l5Bt748aOqoaEyRPRtLrYc/+wWSFPL/4VllCom9aH S0Sfz5NnvUHFrCJzjjbr78tHSxctILPxWyg7mhEwz+UOl6exgtaY1oXHeNfdmCVA5D jPzf/e2AIjjDbsbkZlr9zd4ZZ5cA++nZNESEXlE8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.51] ([94.114.42.168]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1My36N-1i6Xaq44Sd-00zUDu; Sun, 20 Oct 2019 15:21:04 +0200 From: Heinrich Schuchardt To: Tom Rini References: <5d4680f1-1657-6b80-c680-defdfe1b094c@gmx.de> <20191020122741.GH11173@bill-the-cat> Message-ID: Date: Sun, 20 Oct 2019 15:21:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:0bHAWKka6UwUyQcitl++KCuxy2WzD/YpXe8MUVbB/FuklQE8Vz8 g1aLJ3O9mS29qoEv7khwQHdC0mYrjlc7npvLMQxqmbZNwHCy0YwKX98hpJkaJ+sd/JL1mGQ l1M1EJ6+MGpz3XfjtRUEEMsMJkPFR0jXK/ScXsRJI5nkTAUR8PYmd7CW+NHccwNgTx82D/l DNG0sI4bkkyzOCmtMKdlg== X-UI-Out-Filterresults: notjunk:1; V03:K0:3bugPwOGsXM=:NdG8LbiKNk2DQUj/xO+OEs vDPozQorlPSsIoKt7qJdHCOjvKHofLOGqlbVaHKKjzRoNn/DAyidXds6wnTMyN5nQjgfY7//F NIQ8uzdKX1udD7Yv+yi97M5ESPX+kr3aWeycfrs9PhXiLS0Izezbi5RwyInkUmgm2Xm2lVEdZ Rx7xyAQy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JvwHmG+7P MCJsHkWoufJ0Aj3ZT4j++9E6st+pWsYIEH88iYrZjmU7Ye9POt7IGCwFFK9c= Cc: U-Boot Mailing List Subject: [U-Boot] use pytest-3 instead of py.test 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" On 10/20/19 3:11 PM, Heinrich Schuchardt wrote: > On 10/20/19 2:27 PM, Tom Rini wrote: >> On Sun, Oct 20, 2019 at 08:30:44AM +0200, Heinrich Schuchardt wrote: >>> Hello Tom, >>> >>> I tested with the updated origin/WIP/Update-test.py-tests: >>> >>> $ python3 ./test/py/test.py --bd=qemu-arm64 --build-dir=. -k=test_efi_ >>> INTERNALERROR> Traceback (most recent call last): >>> INTERNALERROR>   File >>> "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 180, in >>> wrap_session >> >> Yes, as I was saying on IRC you need to remove the system python-pytest >> and install python3-pytest or switch to a virtualenv setup with >> python=python3 and pip install pytest there.  These, unfortunately, are >> the ways the Python community wants to deal with packaging. >> > > python-pytest and python3-pytest are installed in completely separate > directories, see > > https://packages.debian.org/de/sid/all/python3-pytest/filelist > https://packages.debian.org/de/sid/all/python-pytest/filelist > > python-pytest cannot be invoked by python3. > > So uninstalling python-pytest cannot help to solve the issues that your > patches cause. > > You know that python on most distros will call python2. So if you want > to call python3 do it explicitly. > > virtualenv would only needed if you had different releases of python3 > packages that do not fit together. > > Best regards > > Heinrich This is what you are missing: git diff sys.exit(1) Best regards Heinrich > diff --git a/test/py/test.py b/test/py/test.py index 0ce1838833..10f436f99e 100755 --- a/test/py/test.py +++ b/test/py/test.py @@ -14,12 +14,12 @@ import sys # Get rid of argv[0] sys.argv.pop(0) -# argv; py.test test_directory_name user-supplied-arguments -args = ['py.test', os.path.dirname(__file__) + '/tests'] +# argv; pytest-3 test_directory_name user-supplied-arguments +args = ['pytest-3', os.path.dirname(__file__) + '/tests'] args.extend(sys.argv) try: - os.execvp('py.test', args) + os.execvp('pytest-3', args) except: # Log full details of any exception for detailed analysis import traceback @@ -27,6 +27,6 @@ except: # Hint to the user that they likely simply haven't installed the required # dependencies. print(''' -exec(py.test) failed; perhaps you are missing some dependencies? +exec(pytest-3) failed; perhaps you are missing some dependencies? See test/py/README.md for the list.''', file=sys.stderr)