Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
20
gaia/tests/jsmarionette/runner/marionette-js-runner/lib/optsfileparser.js
Executable file
20
gaia/tests/jsmarionette/runner/marionette-js-runner/lib/optsfileparser.js
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
'use strict';
|
||||
var debug = require('debug')('marionette-js-runner:optsfile'),
|
||||
fs = require('fs');
|
||||
|
||||
/**
|
||||
* Reads the contents of given opts file and returns an array.
|
||||
*
|
||||
* @param {String} file to load opts from.
|
||||
* @return {Array} options.
|
||||
*/
|
||||
function loadOptsFile(file) {
|
||||
debug('loading opts file', file);
|
||||
var opts = fs.readFileSync(file, 'utf8')
|
||||
.trim()
|
||||
.split(/\s+/);
|
||||
|
||||
return opts;
|
||||
}
|
||||
|
||||
module.exports = loadOptsFile;
|
||||
Loading…
Reference in a new issue