[PING^3,1/1] sim/testsuite: Trim extra path from arch
Commit Message
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
by trimming leading "./".
---
sim/testsuite/lib/sim-defs.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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.