Skip to content

Commit

Permalink
sim/testsuite: 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 to make `make check-sim' work.

sim/ChangeLog:

	* testsuite/lib/sim-defs.exp: Fix return value of sim_arch.
  • Loading branch information
a4lg committed Aug 6, 2022
1 parent 9663a94 commit 04bf179
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 04bf179

Please sign in to comment.