From 9e84ec771192360c5c6db056285b784ea70883a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Fri, 7 May 2021 11:49:17 +0200 Subject: [PATCH] Always use posix semantics when joining paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The backslashes were causing issues with Makefile rules. Signed-off-by: Bence Szépkúti --- tests/scripts/generate_psa_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/generate_psa_tests.py b/tests/scripts/generate_psa_tests.py index ab8ebffe44..30f82db257 100755 --- a/tests/scripts/generate_psa_tests.py +++ b/tests/scripts/generate_psa_tests.py @@ -22,6 +22,7 @@ generate only the specified files. import argparse import os +import posixpath import re import sys from typing import Callable, Dict, FrozenSet, Iterable, Iterator, List, Optional, TypeVar @@ -399,7 +400,7 @@ class TestGenerator: def filename_for(self, basename: str) -> str: """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, test_cases: Iterable[test_case.TestCase]) -> None: