Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed Jun 24, 2022
1 parent f0586f1 commit d872efa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def test_cmake_presets_singleconfig():
def test_toolchain_cache_variables():
client = TestClient()
conanfile = textwrap.dedent("""
from conans import ConanFile
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake
class Conan(ConanFile):
Expand All @@ -466,7 +466,8 @@ def generate(self):
""")
client.save({"conanfile.py": conanfile})
with mock.patch("platform.system", mock.MagicMock(return_value="Windows")):
client.run("install . mylib/1.0@ -c tools.cmake.cmaketoolchain:generator='MinGW Makefiles' "
client.run("install . --name=mylib --version=1.0 "
"-c tools.cmake.cmaketoolchain:generator='MinGW Makefiles' "
"-c tools.gnu:make_program='MyMake'")
presets = json.loads(client.load("CMakePresets.json"))
cache_variables = presets["configurePresets"][0]["cacheVariables"]
Expand Down

0 comments on commit d872efa

Please sign in to comment.