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 parallel
"make check-sim" work.

This is necessary only on parallel test of the simulator because parallel
test passes some pathes containing "./".
  • Loading branch information
a4lg committed Oct 23, 2022
1 parent df5ffab commit f3ca7f7
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 f3ca7f7

Please sign in to comment.