From 2275a4f2651e2e9005fe74b119e82b1fe707b9b7 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Thu, 14 Jul 2022 19:30:24 +0900 Subject: [PATCH] sim/testsuite: PR29596, Trim extra path from arch 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(-) 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.