Pass along env to run_with_build_fixers.
This commit is contained in:
parent
d98fdbc14e
commit
fb6d15172a
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from typing import List, Optional
|
from typing import List, Optional, Dict
|
||||||
|
|
||||||
from buildlog_consultant.common import (
|
from buildlog_consultant.common import (
|
||||||
find_build_failure_description,
|
find_build_failure_description,
|
||||||
|
@ -63,11 +63,11 @@ class DependencyContext(object):
|
||||||
raise NotImplementedError(self.add_dependency)
|
raise NotImplementedError(self.add_dependency)
|
||||||
|
|
||||||
|
|
||||||
def run_with_build_fixers(session: Session, args: List[str], fixers: List[BuildFixer]):
|
def run_with_build_fixers(session: Session, args: List[str], fixers: List[BuildFixer], env: Optional[Dict[str, str]] = None):
|
||||||
fixed_errors = []
|
fixed_errors = []
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
retcode, contents = run_with_tee(session, args)
|
retcode, contents = run_with_tee(session, args, env=env)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
error = MissingCommand(args[0])
|
error = MissingCommand(args[0])
|
||||||
retcode = 1
|
retcode = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue