Skip to content

Commit

Permalink
more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 committed Sep 21, 2023
1 parent c9a7f66 commit fdd94cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ 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

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
Expand Down

0 comments on commit fdd94cb

Please sign in to comment.