Skip to content

Commit fb67c42

Browse files
committed
Fix issue on macos
1 parent ed219ab commit fb67c42

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

clang_tools/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
def check_install_os() -> string:
88
os = platform.system().lower()
9+
if os == "darwin":
10+
os = "macosx"
911
return os
1012

1113

tests/test_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import shutil
33
from clang_tools.util import check_install_os, download_file, unpack_file
44

5-
TEST_REPO = "https://github.com/cpp-linter/cpp-linter-action"
5+
TEST_REPO = "https://github.com/shenxianpeng/clang-tools-pip"
66

77

88
def test_check_install_os():
@@ -20,10 +20,10 @@ def test_download_file():
2020

2121

2222
def test_unpack_file():
23-
url = f"{TEST_REPO}/archive/refs/tags/v1.4.4.tar.gz"
23+
url = f"{TEST_REPO}/archive/refs/tags/v0.1.0.tar.gz"
2424
file_name = "test_file.tar.gz"
2525
download_file(url, file_name)
2626
status = unpack_file(file_name)
2727
assert status == 0
2828
os.remove(file_name)
29-
shutil.rmtree("cpp-linter-action-1.4.4")
29+
shutil.rmtree("clang-tools-pip-0.1.0")

0 commit comments

Comments
 (0)