Commit be00a961 by Eric Fischer

Get environment variable for bok-choy-custom runs

parent 0c993788
...@@ -44,7 +44,7 @@ def parse_bokchoy_opts(options): ...@@ -44,7 +44,7 @@ def parse_bokchoy_opts(options):
'test_spec': getattr(options, 'test_spec', None), 'test_spec': getattr(options, 'test_spec', None),
'fasttest': getattr(options, 'fasttest', False), 'fasttest': getattr(options, 'fasttest', False),
'num_processes': int(getattr(options, 'num_processes', 1)), '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), 'serversonly': getattr(options, 'serversonly', False),
'testsonly': getattr(options, 'testsonly', False), 'testsonly': getattr(options, 'testsonly', False),
'default_store': getattr(options, 'default_store', os.environ.get('DEFAULT_STORE', 'split')), 'default_store': getattr(options, 'default_store', os.environ.get('DEFAULT_STORE', 'split')),
......
...@@ -11,6 +11,8 @@ from pavelib.utils.envs import Env ...@@ -11,6 +11,8 @@ from pavelib.utils.envs import Env
from pavelib.utils.test import bokchoy_utils from pavelib.utils.test import bokchoy_utils
from pavelib.utils.test import utils as test_utils from pavelib.utils.test import utils as test_utils
import os
try: try:
from pygments.console import colorize from pygments.console import colorize
except ImportError: except ImportError:
...@@ -54,7 +56,7 @@ class BokChoyTestSuite(TestSuite): ...@@ -54,7 +56,7 @@ class BokChoyTestSuite(TestSuite):
self.default_store = kwargs.get('default_store', None) self.default_store = kwargs.get('default_store', None)
self.verbosity = kwargs.get('verbosity', DEFAULT_VERBOSITY) self.verbosity = kwargs.get('verbosity', DEFAULT_VERBOSITY)
self.num_processes = kwargs.get('num_processes', DEFAULT_NUM_PROCESSES) 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.extra_args = kwargs.get('extra_args', '')
self.har_dir = self.log_dir / 'hars' self.har_dir = self.log_dir / 'hars'
self.a11y_file = Env.BOK_CHOY_A11Y_CUSTOM_RULES_FILE self.a11y_file = Env.BOK_CHOY_A11Y_CUSTOM_RULES_FILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment