Bug fixes and package updates.

This commit is contained in:
ak47 committed 2026-11-07 13:14:22 -05:00
1 parent 19b789ef5c
commit d0c977281d
11 files changed
+176 -27

No files matched your search

+8 -6
View File
@@ -42,7 +42,7 @@ elif tool in ("go", "bootstrap-go"):
version = "1.24.0" if tool == "bootstrap-go" else os.environ["INSTALLED_GO"]
print("go version go" + version + " linux/amd64")
elif args[0] == "build":
if args[-1].endswith("cthulhu-braille") and os.environ.get("FAIL_BRAILLE"):
if args[-1] == os.environ.get("FAIL_BUILD_TARGET"):
sys.exit(2)
Path(args[args.index("-o") + 1]).touch()
'''
@@ -162,11 +162,13 @@ class BuildScriptTests(unittest.TestCase):
self.assertNotEqual(result.returncode, 0)
self.assertFalse(self.calls("curl"))
def test_braille_failure_is_not_reported_as_success(self):
self.env["FAIL_BRAILLE"] = "1"
result = self.run_build()
self.assertNotEqual(result.returncode, 0)
self.assertNotIn("Cthulhu has been built", result.stdout)
def test_helper_failure_is_not_reported_as_success(self):
for helper in ("cthulhu-braille", "cthulhu-input-helper"):
with self.subTest(helper=helper):
self.env["FAIL_BUILD_TARGET"] = f"./cmd/{helper}"
result = self.run_build()
self.assertNotEqual(result.returncode, 0)
self.assertNotIn("Cthulhu has been built", result.stdout)
def test_disabled_cgo_and_output_conflicts_fail_before_building(self):
self.env["CGO_ENABLED"] = "0"