diff --git a/bazel/labgrid/driver/localhost.py b/bazel/labgrid/driver/localhost.py index ed74c388eadd6e0d07737c43ec8a96326ea0e60f..e97a307f793e8f35aef918fb83931152ba0ad09e 100644 --- a/bazel/labgrid/driver/localhost.py +++ b/bazel/labgrid/driver/localhost.py @@ -1,11 +1,10 @@ import attr -from os import environ, linesep +from os import linesep from shutil import copy, copytree from subprocess import run, PIPE from pathlib import Path -from bazel.python.runfiles import exclude_runfile_env_vars from labgrid.factory import target_factory from labgrid.step import step from labgrid.driver import Driver @@ -27,12 +26,11 @@ class LocalhostDriver(CommandMixin, Driver, CommandProtocol, FileTransferProtoco return self._run(cmd, timeout=timeout, codec=codec, decodeerrors=decodeerrors) def _run(self, cmd, *, timeout=30.0, codec="utf-8", decodeerrors="strict"): - env = exclude_runfile_env_vars(environ) process = run( cmd, stdout=PIPE, stderr=PIPE, - env=env, + env={}, shell=True, timeout=timeout, encoding=codec,