Update Sable and make LINKS test support it

This commit is contained in:
2024-12-28 17:56:47 +01:00
committed by Val Lorentz
parent 00c130d66c
commit 3e6d97ae42
3 changed files with 11 additions and 4 deletions

View File

@ -1140,7 +1140,7 @@ jobs:
uses: actions/checkout@v4
with:
path: sable
ref: 52397dc9e0f27c3ed197f984c00f06639870716d
ref: baed3ef9ac4550dc36a45b758436769e82e8ec58
repository: Libera-Chat/sable
- name: Install rust toolchain
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
def _server_info_regexp(case: cases.BaseServerTestCase) -> str:
if case.controller.software_name == "Sable":
return ".+"
else:
return "test server"
class LinksTestCase(cases.BaseServerTestCase):
@cases.mark_specifications("RFC1459", "RFC2812", "Modern")
def testLinksSingleServer(self):
@ -56,7 +63,7 @@ class LinksTestCase(cases.BaseServerTestCase):
"nick",
"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",
"My.Little.Server",
"My.Little.Server",
StrRe("0 (0042 )?test server"),
StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
],
)
self.assertMessageMatch(

View File

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