mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 02:57:18 +03:00
[CI] sends ctrl-z to work around profiling output hang
This commit is contained in:
parent
a356a83066
commit
21233db91e
@ -8,17 +8,28 @@ var actions = runner.actions
|
|||||||
var args = ['-A', '../arvo', '-csgPSF', 'zod', 'zod'];
|
var args = ['-A', '../arvo', '-csgPSF', 'zod', 'zod'];
|
||||||
var urbit = new Urbit(args);
|
var urbit = new Urbit(args);
|
||||||
|
|
||||||
|
// vere hangs (always?) with run in travis-ci with -P
|
||||||
|
// so we send ^Z if we hang for ~s30
|
||||||
|
function exit() {
|
||||||
|
setTimeout(function(){
|
||||||
|
urbit.pty.write('\x1a');
|
||||||
|
urbit.pty.on('exit', function(code, signal){
|
||||||
|
process.exit(0);
|
||||||
|
})
|
||||||
|
}, 30 * 1000);
|
||||||
|
|
||||||
|
return urbit.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
Promise.resolve(urbit)
|
Promise.resolve(urbit)
|
||||||
.then(actions.safeBoot)
|
.then(actions.safeBoot)
|
||||||
.then(actions.test)
|
.then(actions.test)
|
||||||
.then(function(){
|
.then(exit)
|
||||||
return urbit.exit(0);
|
|
||||||
})
|
|
||||||
.catch(function(err){
|
.catch(function(err){
|
||||||
|
// we still exit 0, Arvo errors are not our fault ...
|
||||||
return urbit.waitSilent()
|
return urbit.waitSilent()
|
||||||
.then(function(){
|
.then(function(){
|
||||||
urbit.warn("Arvo test aborted:", err);
|
return urbit.warn("Arvo test aborted:", err);
|
||||||
// we still exit 0, it's not our fault ...
|
})
|
||||||
return urbit.exit(0);
|
.then(exit);
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user