From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id DF86B3860C39 for ; Mon, 14 Dec 2020 21:21:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DF86B3860C39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: QicdLeLVR+oWmCMjBUt0xnLDV/4JKs76bkDhg4sOfJ5tXnUa+bUaQc/Jn6BP94s9f8kvo8iWaq tcVclr64mLrz4hifTZnTqJHvY6jStCLmqFQ4Kuk1dpKJftTSS2yOaf7QXi1+OODyymtPLsYOby Opu2ciXtIqnbk+gsV0MaL9KJElVk1rQbxJ/etxboi+HlNR0W1a7ZwgfkT9Cgf9RRfscLhCfc1S 0pstkTEgQK9FcsZxXXosXnN+tat0X/LgMmb3NaqwbQ/RYJ2pJJTxlhARuGu+cdHvC288CUXKHu 62U= X-IronPort-AV: E=Sophos;i="5.78,420,1599552000"; d="scan'208";a="56167087" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 14 Dec 2020 13:21:32 -0800 IronPort-SDR: 70N+GdrBWqW6/+JmWMiy1O+lhjH7N8+vKFN3QliuEa1BGtIUk6gBaepgVBJePgxiJ9vkwa/k4T rSjJg8fUZiJkbz/UN8DMV4Q/XdKfReDNrYjo9N9cVxTwrlIhKN53b012XAXknvFFFVqICanOro 7X6n3u4gJl1RP4VBmj/Sb2dd2H13jwa8lG1R2K5fWCmQUaqFDodWqC2Org0PtGeDUdrZp4EMM1 suHvhnMnNh6IP4RznZjl8FBdVYcDiQRoINyTWcRdyerY2Pq/SPLDKpii6rvNJZc+7AR0ic/H3c vUM= Date: Mon, 14 Dec 2020 21:21:27 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: =?ISO-8859-15?Q?Martin_Li=A8ka?= CC: GCC Development Subject: Re: Pytest usage in DejaGNU? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3124.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2020 21:21:35 -0000 On Mon, 14 Dec 2020, Martin Liška wrote: > + spawn -noecho pytest -rA -s --tb=no $script "pytest" might not be the right command everywhere. If I install python3-pytest on Ubuntu 20.04 I only get /usr/bin/pytest-3 not /usr/bin/pytest. There is a clear advantage to any usage of Python only depending on the standard library and not other Python packages. > PASSED test_json.py::test_gcov_output > PASSED test_json.py::test_gcov_output > PASSED test_json.py::test_gcov_output The names after "PASS: " or "FAIL: " in DejaGnu output should be unique (and not depend on whether the test in question passes or fails, or on variables such as the build directory); there should not be three tests with the same name. -- Joseph S. Myers joseph@codesourcery.com