mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-21 08:10:24 +08:00
bugfix: strip environment value
This commit is contained in:
@@ -513,7 +513,8 @@ def load_dot_env_file(path):
|
||||
with io.open(path, 'r', encoding='utf-8') as fp:
|
||||
for line in fp:
|
||||
variable, value = line.split("=")
|
||||
os.environ[variable] = value
|
||||
variable = variable.strip()
|
||||
os.environ[variable] = value.strip()
|
||||
logger.log_debug("Loaded variable: {}".format(variable))
|
||||
|
||||
def validate_json_file(file_list):
|
||||
|
||||
Reference in New Issue
Block a user