check for startup message in workflows

This commit is contained in:
Frostebite 2023-05-07 16:38:16 +01:00
parent 5208eabcbf
commit df3f3df277

View File

@ -16,9 +16,10 @@ import BuildParameters from '../../build-parameters';
export class RemoteClient { export class RemoteClient {
@CliFunction(`remote-cli-pre-build`, `sets up a repository, usually before a game-ci build`) @CliFunction(`remote-cli-pre-build`, `sets up a repository, usually before a game-ci build`)
static async runRemoteClientJob() { static async runRemoteClientJob() {
await CloudRunnerSystem.Run(`sudo sysctl kernel.dmesg_restrict=0`, false, true);
assert( assert(
(await CloudRunnerSystem.Run(`dmesg`, false, true)).includes(`cloud runner build workflow starting`), (await CloudRunnerSystem.Run(`cat /var/log/syslog`, false, true)).includes(
`cloud runner build workflow starting`,
),
'System logs must include startup message', 'System logs must include startup message',
); );