Get environment variable for bok-choy-custom runs
This commit is contained in:
@@ -44,7 +44,7 @@ def parse_bokchoy_opts(options):
|
||||
'test_spec': getattr(options, 'test_spec', None),
|
||||
'fasttest': getattr(options, 'fasttest', False),
|
||||
'num_processes': int(getattr(options, 'num_processes', 1)),
|
||||
'verify_xss': getattr(options, 'verify_xss', False),
|
||||
'verify_xss': getattr(options, 'verify_xss', os.environ.get('VERIFY_XSS', False)),
|
||||
'serversonly': getattr(options, 'serversonly', False),
|
||||
'testsonly': getattr(options, 'testsonly', False),
|
||||
'default_store': getattr(options, 'default_store', os.environ.get('DEFAULT_STORE', 'split')),
|
||||
|
||||
@@ -11,6 +11,8 @@ from pavelib.utils.envs import Env
|
||||
from pavelib.utils.test import bokchoy_utils
|
||||
from pavelib.utils.test import utils as test_utils
|
||||
|
||||
import os
|
||||
|
||||
try:
|
||||
from pygments.console import colorize
|
||||
except ImportError:
|
||||
@@ -54,7 +56,7 @@ class BokChoyTestSuite(TestSuite):
|
||||
self.default_store = kwargs.get('default_store', None)
|
||||
self.verbosity = kwargs.get('verbosity', DEFAULT_VERBOSITY)
|
||||
self.num_processes = kwargs.get('num_processes', DEFAULT_NUM_PROCESSES)
|
||||
self.verify_xss = kwargs.get('verify_xss', False)
|
||||
self.verify_xss = kwargs.get('verify_xss', os.environ.get('VERIFY_XSS', False))
|
||||
self.extra_args = kwargs.get('extra_args', '')
|
||||
self.har_dir = self.log_dir / 'hars'
|
||||
self.a11y_file = Env.BOK_CHOY_A11Y_CUSTOM_RULES_FILE
|
||||
|
||||
Reference in New Issue
Block a user