scripts: using pathlib for in get_toolchain() method

Followup commit on comment in #32003.

Using pathlib to avoid mixing of `/` and `\` if twister someday will be
able to run on Windows.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2021-02-05 09:55:41 +01:00 committed by Anas Nashif
commit a088970bc3

View file

@ -2838,7 +2838,7 @@ class TestSuite(DisablePyTestCollectionMixin):
@staticmethod
def get_toolchain():
toolchain_script = ZEPHYR_BASE + "/cmake/verify-toolchain.cmake"
toolchain_script = Path(ZEPHYR_BASE) / Path('cmake/verify-toolchain.cmake')
result = CMake.run_cmake_script([toolchain_script, "FORMAT=json"])
try: