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.