You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Attach synapse logs to failed Playwright test runs (#12027)
* Attach synapse logs to failed Playwright test runs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update playwright/plugins/homeserver/index.ts --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
18f11b8024
commit
d5a211c774
@ -150,7 +150,7 @@ export class Synapse implements Homeserver, HomeserverInstance {
|
||||
return this;
|
||||
}
|
||||
|
||||
public async stop(): Promise<void> {
|
||||
public async stop(): Promise<string[]> {
|
||||
if (!this.config) throw new Error("Missing existing synapse instance, did you call stop() before start()?");
|
||||
const id = this.config.serverId;
|
||||
const synapseLogsPath = path.join("playwright", "synapselogs", id);
|
||||
@ -162,6 +162,8 @@ export class Synapse implements Homeserver, HomeserverInstance {
|
||||
await this.docker.stop();
|
||||
await fse.remove(this.config.configDir);
|
||||
console.log(`Stopped synapse id ${id}.`);
|
||||
|
||||
return [path.join(synapseLogsPath, "stdout.log"), path.join(synapseLogsPath, "stderr.log")];
|
||||
}
|
||||
|
||||
public async registerUser(username: string, password: string, displayName?: string): Promise<Credentials> {
|
||||
|
Reference in New Issue
Block a user