From f3ca7f7f8388b3fcd23b6fd1aabe7c04c1564caf 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 parallel "make check-sim" work. This is necessary only on parallel test of the simulator because parallel test passes some pathes containing "./". --- 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.