From ad07321c8a954e6a2ffd9271bfbf53ed0611146f Mon Sep 17 00:00:00 2001 From: peng-shenghai <727236591@qq.com> Date: Mon, 15 Jun 2026 05:53:51 +0800 Subject: [PATCH] fix: repair bcos formula test block --- Formula/bcos.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Formula/bcos.rb b/Formula/bcos.rb index 2432dad..2f0acb4 100644 --- a/Formula/bcos.rb +++ b/Formula/bcos.rb @@ -36,17 +36,17 @@ def install test do # Test that bcos command is available - assert_match "BCOS", shell_output("#{bin}/bcos --help 2>&1 || true") + assert_match "BCOS", shell_output("#{bin}/bcos --help 2>&1") # Test version output output = shell_output("#{bin}/clawrtc --version") - assert_match "1.8.0", output + assert_match version.to_s, output # Test BCOS scan on a simple directory mkdir "test_repo" do - write_file "test.py", "# SPDX-License-Identifier: MIT\nprint('hello')" - output = shell_output("#{bin}/bcos scan . 2>&1 || true") + (testpath/"test_repo/test.py").write "# SPDX-License-Identifier: MIT\nprint('hello')" + output = shell_output("#{bin}/bcos scan . 2>&1") assert_match "Trust Score", output end end -end \ No newline at end of file +end