mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
26 lines
547 B
JavaScript
26 lines
547 B
JavaScript
'use strict';
|
|
|
|
var runner = require('urbit-runner')
|
|
var Urbit = runner.Urbit;
|
|
var ERROR = runner.ERROR;
|
|
var actions = runner.actions
|
|
|
|
var args = ['-B', 'urbit.pill', '-A', '..', '-cSF', 'zod', 'zod'];
|
|
var urbit = new Urbit(args);
|
|
|
|
Promise.resolve(urbit)
|
|
.then(actions.safeBoot)
|
|
.then(actions.test)
|
|
.then(actions.testCores)
|
|
.then(actions.testRenderers)
|
|
.then(function(){
|
|
return urbit.exit(0);
|
|
})
|
|
.catch(function(err){
|
|
return urbit.waitSilent()
|
|
.then(function(){
|
|
urbit.warn("Test aborted:", err);
|
|
return urbit.exit(1);
|
|
});
|
|
});
|