Skip to content

Commit

Permalink
sim/testsuite: PR29596, Trim extra path from arch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a4lg committed Oct 16, 2022
1 parent 45685a2 commit 2275a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/testsuite/lib/sim-defs.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2275a4f

Please sign in to comment.