From: Tsukasa OI <research_trasio@irq.a4lg.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>
Cc: binutils@sourceware.org
Subject: [PATCH] sim/testsuite: Trim extra path from arch
Date: Thu, 14 Jul 2022 19:38:15 +0900 [thread overview]
Message-ID: <28df7073ec5a8f601ba47c9d2f7d4a7a0ce08753.1657795051.git.research_trasio@irq.a4lg.com> (raw)
If subdir begins with "./", sim_arch returned "./ARCH" instead of
"ARCH" and target-specific check-sim is prevented. This commit fixes
the issue to make `make check-sim' work.
sim/ChangeLog:
* testsuite/lib/sim-defs.exp: Fix return value of sim_arch.
---
sim/testsuite/lib/sim-defs.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp
index 5528d64684b..6d8f0134089 100644
--- a/sim/testsuite/lib/sim-defs.exp
+++ b/sim/testsuite/lib/sim-defs.exp
@@ -14,7 +14,7 @@ proc sim_arch {} {
while { [file dirname $arch] != "." } {
set arch [file dirname $arch]
}
- return "$arch"
+ return [file tail $arch]
}
# Initialize the testrun.
base-commit: 2df41bda2f80a1fbd443c44ee1bd54da579fc8a2
--
2.34.1
reply other threads:[~2022-07-14 10:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28df7073ec5a8f601ba47c9d2f7d4a7a0ce08753.1657795051.git.research_trasio@irq.a4lg.com \
--to=research_trasio@irq.a4lg.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).