[PING^4,1/1] sim/testsuite: PR29596, Trim extra path from arch

Message ID 58dd6537d7568332a7afc60b76b7b7c79d4d8232.1665287734.git.research_trasio@irq.a4lg.com
State Committed
Headers
Series sim/testsuite: PR29596, Fix broken "make check-sim" by trimming excess path from arch |

Commit Message

Tsukasa OI Oct. 9, 2022, 3:55 a.m. UTC
  If subdir begins with "./", sim_arch returned "./ARCH" instead of
"ARCH" and target-specific check-sim is prevented.  This commit fixes
the issue (by trimming extra path from arch) to make "make check-sim" work.
---
 sim/testsuite/lib/sim-defs.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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.