From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UFwlFbCkVWNm1A8AWB0awg (envelope-from ) for ; Sun, 23 Oct 2022 16:31:44 -0400 Received: by simark.ca (Postfix, from userid 112) id 538161E112; Sun, 23 Oct 2022 16:31:44 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=YMWaHrGm; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E4E391E0D5 for ; Sun, 23 Oct 2022 16:31:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 09A77385694D for ; Sun, 23 Oct 2022 20:31:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09A77385694D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666557102; bh=JAssN4vq7UArwb8c8/xR407N/vTlmy+WaDE8W+qFQCk=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=YMWaHrGmoAM/w2qPQrIB7ukKHtxvOhnXFG58hCcQVVrmWNl3Luc7+P/KkQirALNBr f9rgKXcaTpWIcKwvYpL4Vk6Ai9cD82Ozct7WmIV7kFSru8CJsZsYHSzr4xnnyJrRcp qKUR/zlI9ahnXQ1+2aIIvsrEKDWzjaO/Vd66Dz2c= Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 0AF9D385694D for ; Sun, 23 Oct 2022 20:31:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0AF9D385694D Received: by smtp.gentoo.org (Postfix, from userid 559) id AE57B340FA7; Sun, 23 Oct 2022 20:31:21 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH] sim: testsuite: tweak parallel find invocation [PR sim/29596] Date: Mon, 24 Oct 2022 01:01:54 +0545 Message-Id: <20221023191654.28740-1-vapier@gentoo.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Make sure we invoke runtest with the same exp filenames when running in parallel as it will find when run single threaded. When `runtest` finds files itself, it will use paths like "aarch64/allinsn.exp". When we run `find .` with the %p option, it produces "./aarch64/allinsn.exp". Switch to %P to get "aarch64/allinsn.exp". Bug: https://sourceware.org/PR29596 --- sim/Makefile.in | 2 +- sim/testsuite/local.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/testsuite/local.mk b/sim/testsuite/local.mk index c1799c728ae7..e55f8c3c8b22 100644 --- a/sim/testsuite/local.mk +++ b/sim/testsuite/local.mk @@ -49,7 +49,7 @@ check/%.exp: check-DEJAGNU-parallel: $(AM_V_at)( \ $(MAKE) -k \ - `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%p '`; \ + `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%P '`; \ ret=$$?; \ $(SHELL) $(srcroot)/contrib/dg-extract-results.sh \ `find testsuite/ -maxdepth 4 -name testrun.sum | sort` > testrun.sum; \ -- 2.37.3