mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
'use strict';
|
|
|
|
var runner = require('urbit-runner')
|
|
var Urbit = runner.Urbit;
|
|
var ERROR = runner.ERROR;
|
|
var actions = runner.actions
|
|
|
|
var args = ['-A', '../arvo', '-csgPSF', 'zod', 'zod'];
|
|
var urbit = new Urbit(args);
|
|
|
|
Promise.resolve(urbit)
|
|
.then(actions.safeBoot)
|
|
.then(actions.test)
|
|
.then(function(){
|
|
return urbit.exit(0);
|
|
})
|
|
.catch(function(err){
|
|
return urbit.waitSilent()
|
|
.then(function(){
|
|
urbit.warn("Arvo test aborted:", err);
|
|
// we still exit 0, it's not our fault ...
|
|
return urbit.exit(0);
|
|
});
|
|
});
|