Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/scripts/pr-verify/workflow.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,21 @@ test("the screenshot font is installed before isolation and checked for U+23F8",
assert.match(script, /exit 1/);
});

test("the screenshot font check passes on any font fc-list reports for U+23F8 and fails on none", () => {
// Capture run 42230112786 failed on a family-name match the runner's fc-list did not print.
const check = scriptOf(capStep("Install the screenshot font")).split("\n").filter((line) => !/apt-get/.test(line)).join("\n");
const dir = tempDir("font-check-");
const fcList = path.join(dir, "fc-list");
const run = (output) => {
writeFileSync(fcList, `#!/bin/sh\nprintf '%s' '${output}'\n`, { mode: 0o755 });
return spawnSync("bash", ["-eo", "pipefail", "-c", check], { env: { PATH: `${dir}:/usr/bin:/bin` }, encoding: "utf8" });
};
assert.equal(run("/usr/share/fonts/truetype/noto/NotoSansSymbols2-Regular.ttf: Noto Sans Symbols2\n").status, 0);
const none = run("");
assert.equal(none.status, 1);
assert.match(none.stdout, /no installed font has U\+23F8/);
});

test("stopping the key proxy matches the proxy's node command line, not its sh watcher", () => {
// Node's comm is MainThread (runner probe run 42223922880), so `pgrep -x node` never matched.
const stop = scriptOf(capStep("Stop the key proxy"));
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr-verify-capture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,9 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends fonts-noto-core >/dev/null
fonts=$(fc-list ':charset=23f8' family)
[[ $fonts == *"Noto Sans Symbols 2"* ]] || { echo "::error::no installed font has U+23F8"; exit 1; }
fonts=$(fc-list ':charset=23f8' family file)
[[ -n $fonts ]] || { echo "::error::no installed font has U+23F8"; exit 1; }
printf '%s\n' "$fonts"

# A root-owned copy of main's driver and launch broker (the broker
# refuses a driver, config or deps directory it can write), with the
Expand Down
Loading