Skip to content

Commit

Permalink
fix: tests (#569)
Browse files Browse the repository at this point in the history
* fix: tests

Now that process gets replaced on UNIX, tests were not running (pytest got replaced with the first script invocation and returned success).

* remove added `ccmake` test

`ccmake` is not present on Windows
`ccmake` seems to be failing on Linux currently.
  • Loading branch information
mayeut authored Dec 11, 2024
1 parent 6d81146 commit 0dc10b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ def _run(program, args):


@all_tools
def test_cmake_module(tool):
def test_cmake_module(tool, monkeypatch):
monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl
_run(tool, ["--version"])


def test_cmake_https(tmpdir):
def test_cmake_https(tmpdir, monkeypatch):
monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl
test_script = tmpdir.join("cmake-test-https-download.cmake")
test_script.write(textwrap.dedent(
"""
Expand Down

0 comments on commit 0dc10b9

Please sign in to comment.