aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-19 22:24:13 +0900
committerOphestra <cat@gensokyo.uk>2026-11-19 22:24:13 +0900
commit104d691b85aa0f3eeaf705b6f7f6b46c15cd7fe0 (patch)
tree165bd757055bdd5bd68ee15341d861db12d76daf
parent719f24254c4dc2b8c16680a9194e90c6b737f22e (diff)
cmd/hakurei/testsuite: accept new libnotify output
This error message appeared to have changed since the archaic version packaged for gitea actions. This change accepts both messages. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--cmd/hakurei/testsuite/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go
index 9e7455a5..cb315401 100644
--- a/cmd/hakurei/testsuite/main.go
+++ b/cmd/hakurei/testsuite/main.go
@@ -607,9 +607,11 @@ func main() {
"Test notification",
}
}, nil, func(output string) bool {
- return output == "GDBus.Error:"+
- "org.freedesktop.DBus.Error.ServiceUnknown: "+
+ const suffix = "GDBus.Error:" +
+ "org.freedesktop.DBus.Error.ServiceUnknown: " +
"org.freedesktop.DBus.Error.ServiceUnknown\r\n"
+ return output == suffix ||
+ output == "Failed to show notification: "+suffix
}, hst.ExitFailure,
)