mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Always use posix semantics when joining paths
The backslashes were causing issues with Makefile rules. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
committed by
Gilles Peskine
parent
cabae3d29e
commit
9e84ec7711
@ -22,6 +22,7 @@ generate only the specified files.
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
import posixpath
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from typing import Callable, Dict, FrozenSet, Iterable, Iterator, List, Optional, TypeVar
|
from typing import Callable, Dict, FrozenSet, Iterable, Iterator, List, Optional, TypeVar
|
||||||
@ -399,7 +400,7 @@ class TestGenerator:
|
|||||||
|
|
||||||
def filename_for(self, basename: str) -> str:
|
def filename_for(self, basename: str) -> str:
|
||||||
"""The location of the data file with the specified base name."""
|
"""The location of the data file with the specified base name."""
|
||||||
return os.path.join(self.test_suite_directory, basename + '.data')
|
return posixpath.join(self.test_suite_directory, basename + '.data')
|
||||||
|
|
||||||
def write_test_data_file(self, basename: str,
|
def write_test_data_file(self, basename: str,
|
||||||
test_cases: Iterable[test_case.TestCase]) -> None:
|
test_cases: Iterable[test_case.TestCase]) -> None:
|
||||||
|
Reference in New Issue
Block a user