Update Sable and make LINKS test support it

This commit is contained in:
2024-12-28 17:56:47 +01:00
committed by Valentin Lorentz
parent 93363e4b05
commit 63def483a1
3 changed files with 11 additions and 4 deletions

View File

@ -1140,7 +1140,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
path: sable path: sable
ref: 52397dc9e0f27c3ed197f984c00f06639870716d ref: baed3ef9ac4550dc36a45b758436769e82e8ec58
repository: Libera-Chat/sable repository: Libera-Chat/sable
- name: Install rust toolchain - name: Install rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1

View File

@ -3,6 +3,13 @@ from irctest.numerics import ERR_UNKNOWNCOMMAND, RPL_ENDOFLINKS, RPL_LINKS
from irctest.patma import ANYSTR, StrRe from irctest.patma import ANYSTR, StrRe
def _server_info_regexp(case: cases.BaseServerTestCase) -> str:
if case.controller.software_name == "Sable":
return ".+"
else:
return "test server"
class LinksTestCase(cases.BaseServerTestCase): class LinksTestCase(cases.BaseServerTestCase):
@cases.mark_specifications("RFC1459", "RFC2812", "Modern") @cases.mark_specifications("RFC1459", "RFC2812", "Modern")
def testLinksSingleServer(self): def testLinksSingleServer(self):
@ -56,7 +63,7 @@ class LinksTestCase(cases.BaseServerTestCase):
"nick", "nick",
"My.Little.Server", "My.Little.Server",
"My.Little.Server", "My.Little.Server",
StrRe("0 (0042 )?test server"), StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
], ],
) )
@ -119,7 +126,7 @@ class ServicesLinksTestCase(cases.BaseServerTestCase):
"nick", "nick",
"My.Little.Server", "My.Little.Server",
"My.Little.Server", "My.Little.Server",
StrRe("0 (0042 )?test server"), StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
], ],
) )
self.assertMessageMatch( self.assertMessageMatch(

View File

@ -249,7 +249,7 @@ software:
name: Sable name: Sable
repository: Libera-Chat/sable repository: Libera-Chat/sable
refs: refs:
stable: 52397dc9e0f27c3ed197f984c00f06639870716d stable: baed3ef9ac4550dc36a45b758436769e82e8ec58
release: null release: null
devel: master devel: master
devel_release: null devel_release: null