From 60c2d8c729906a2972a873bb489cdf35432323ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Tue, 16 May 2023 21:16:26 +0300 Subject: [PATCH] Fix test\runner sanity.test_aaa_normal to work on Windows --- test/test_sanity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_sanity.py b/test/test_sanity.py index a2c4d5e3b7095..89a0f60b77a27 100644 --- a/test/test_sanity.py +++ b/test/test_sanity.py @@ -15,7 +15,7 @@ from common import RunnerCore, path_from_root, env_modify, test_file from common import create_file, ensure_dir, make_executable, with_env_modify -from common import parameterized, EMBUILDER +from common import crossplatform, parameterized, EMBUILDER from tools.config import EM_CONFIG from tools.shared import EMCC from tools.shared import config @@ -26,7 +26,7 @@ from tools import ports SANITY_FILE = cache.get_path('sanity.txt') -commands = [[EMCC], [path_from_root('test/runner'), 'blahblah']] +commands = [[EMCC], [shared.bat_suffix(path_from_root('test/runner')), 'blahblah']] expected_llvm_version = str(shared.EXPECTED_LLVM_VERSION) + '.0.0' @@ -156,6 +156,7 @@ def check_working(self, command, expected=None): return output # this should be the very first thing that runs. if this fails, everything else is irrelevant! + @crossplatform def test_aaa_normal(self): for command in commands: # Your existing EM_CONFIG should work!