Skip to content

Commit

Permalink
Update Sable and make LINKS test support it
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Dec 28, 2024
1 parent 93363e4 commit 63def48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions irctest/server_tests/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
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):
Expand Down Expand Up @@ -56,7 +63,7 @@ def testLinksSingleServer(self):
"nick",
"My.Little.Server",
"My.Little.Server",
StrRe("0 (0042 )?test server"),
StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
],
)

Expand Down Expand Up @@ -119,7 +126,7 @@ def testLinksWithServices(self):
"nick",
"My.Little.Server",
"My.Little.Server",
StrRe("0 (0042 )?test server"),
StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
],
)
self.assertMessageMatch(
Expand Down
2 changes: 1 addition & 1 deletion workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ software:
name: Sable
repository: Libera-Chat/sable
refs:
stable: 52397dc9e0f27c3ed197f984c00f06639870716d
stable: baed3ef9ac4550dc36a45b758436769e82e8ec58
release: null
devel: master
devel_release: null
Expand Down

0 comments on commit 63def48

Please sign in to comment.