Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] [已解决] MacBook M1 环境下在根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了 #166

Open
CherryYang05 opened this issue Dec 17, 2022 · 0 comments
Labels
question Further information is requested

Comments

@CherryYang05
Copy link

问题描述

MacBook M1 环境下在本地根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了。见下面两张图:

GitHub CI 测试

本地 make test 命令执行结果

在 os 对应文件夹下执行 make run BASE=2 得到正确结果(通过 GitHub CI 测试)
os 文件夹下执行 make run 正确

问题解决

群里一个老哥指出了问题,是因为 MacBook 下没有 timeout 命令,这是解决方案

即需要下载 coreutils 包,MacBook 上对应的是 gtimeout 命令,然后用 alias 起一个别名即可。

brew install coreutils
alias timeout=gtimeout

再执行 make test 就成功输出 PASS 了。

@CherryYang05 CherryYang05 added the question Further information is requested label Dec 17, 2022
@CherryYang05 CherryYang05 changed the title [Question] MacBook M1 环境下在根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了 [Question] [已解决]MacBook M1 环境下在根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了 Dec 17, 2022
@CherryYang05 CherryYang05 changed the title [Question] [已解决]MacBook M1 环境下在根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了 [Question] [已解决] MacBook M1 环境下在根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了 Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant