From fdd94cb0c230f8086279c4850362458bed3f2300 Mon Sep 17 00:00:00 2001 From: Luis Caro Campos <3535649+jcar87@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:28:30 +0100 Subject: [PATCH] more paths --- tests/test_smoke.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_smoke.py b/tests/test_smoke.py index 9ba448eb..0f02e209 100644 --- a/tests/test_smoke.py +++ b/tests/test_smoke.py @@ -296,7 +296,7 @@ class TestProfileCustomization: def test_profile_defults(self, capfd, chdir_build): """Test the defaults passed for host and build profiles""" run(f"cmake --fresh .. -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCMAKE_BUILD_TYPE=Release", check=True) - builddir = Path.cwd().as_posix() + builddir = str(Path.cwd()).replace('\\','/') out, _ = capfd.readouterr() assert f"--profile:host={builddir}/conan_host_profile" in out assert "--profile:build=default" in out @@ -304,7 +304,7 @@ def test_profile_defults(self, capfd, chdir_build): def test_profile_composed_list(self, capfd, chdir_build): """Test passing a list of profiles to host and build profiles""" run(f'cmake --fresh .. -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCMAKE_BUILD_TYPE=Release -DCONAN_HOST_PROFILE="autodetect;foo" -DCONAN_BUILD_PROFILE="default;bar"', check=True) - builddir = Path.cwd().as_posix() + builddir = str(Path.cwd()).replace('\\','/') out, err = capfd.readouterr() assert f"--profile:host={builddir}/conan_host_profile" in out assert "--profile:host=foo" in out