[CI > Test] Rewrite detection to work with login
This commit is contained in:
parent
985effeed3
commit
6f0b17cb6d
|
@ -5,15 +5,15 @@ const test = () => {
|
||||||
|
|
||||||
let success = false;
|
let success = false;
|
||||||
proc.stderr.on('data', (data) => {
|
proc.stderr.on('data', (data) => {
|
||||||
console.error(data.toString());
|
console.error('stderr', data.toString());
|
||||||
if (data.toString().includes('FAST CONNECT')) { // Main window JS running, startup success
|
|
||||||
success = true;
|
|
||||||
proc.kill();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
proc.stdout.on('data', (data) => {
|
proc.stdout.on('data', (data) => {
|
||||||
console.log(data.toString());
|
console.log('stdout', data.toString());
|
||||||
|
if (data.toString().includes('Installing discord_rpc')) {
|
||||||
|
success = true;
|
||||||
|
setTimeout(() => proc.kill(), 1000);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
proc.on('close', async () => {
|
proc.on('close', async () => {
|
||||||
|
|
Loading…
Reference in New Issue