Add -b option to skip translator/style installation in tests

'b' for *b*undled files

Translators and styles take a long time to install and initialize in
source installations, and they're unnecessary for many tests.

This shaves about 10 seconds off each test run for me on one system (and
that's with some help from filesystem caching).
This commit is contained in:
Dan Stillman 2015-04-16 17:35:38 -04:00
parent 0154e44c2f
commit 51c7ae6e5c
4 changed files with 18 additions and 1 deletions

View file

@ -465,6 +465,9 @@ ZoteroCommandLineHandler.prototype = {
if (cmdLine.handleFlag("ZoteroNoUserInput", false)) {
zInitOptions.noUserInput = true;
}
if (cmdLine.handleFlag("ZoteroSkipBundledFiles", false)) {
zInitOptions.skipBundledFiles = true;
}
},
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=zotero",