[repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test

This commit is contained in:
2026-11-19 02:11:31 +01:00
parent 0d37f91763
commit 3a6f2ad6ee
5 changed files with 35 additions and 7 deletions
+3 -3
View File
@@ -40,15 +40,15 @@ describe('signArgs', () => {
describe('custosSign', () => {
it('runs the custos-sign CUSTOS_SIGN_EXE names, else the one on PATH', () => {
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe' }, () => true)).toBe('F:\Apps\Custos\custos-sign.exe');
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\\Apps\\Custos\\custos-sign.exe' }, () => true)).toBe('F:\\Apps\\Custos\\custos-sign.exe');
expect(custosSign({}, () => true)).toBe('custos-sign.exe');
});
it('refuses a named custos-sign that is not there, rather than another one', () => {
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\nowhere.exe' }, () => false)).toThrow(/not there/);
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\\nowhere.exe' }, () => false)).toThrow(/not there/);
});
it('refuses another Custos (CUSTOS_PIPE)', () => {
expect(() => custosSign({ CUSTOS_PIPE: '\\.\pipe\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
expect(() => custosSign({ CUSTOS_PIPE: '\\\\.\\pipe\\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
});
});