diff options
Diffstat (limited to 'src/buildstream/sandbox/_mounter.py')
-rw-r--r-- | src/buildstream/sandbox/_mounter.py | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/buildstream/sandbox/_mounter.py b/src/buildstream/sandbox/_mounter.py index 57f35bdec..38b9b9c1c 100644 --- a/src/buildstream/sandbox/_mounter.py +++ b/src/buildstream/sandbox/_mounter.py @@ -28,14 +28,7 @@ from .. import utils, _signals class Mounter: @classmethod def _mount( - cls, - dest, - src=None, - mount_type=None, - stdout=None, - stderr=None, - options=None, - flags=None, + cls, dest, src=None, mount_type=None, stdout=None, stderr=None, options=None, flags=None, ): if stdout is None: @@ -58,9 +51,7 @@ class Mounter: status, _ = utils._call(argv, terminate=True, stdout=stdout, stderr=stderr) if status != 0: - raise SandboxError( - "`{}` failed with exit code {}".format(" ".join(argv), status) - ) + raise SandboxError("`{}` failed with exit code {}".format(" ".join(argv), status)) return dest @@ -75,9 +66,7 @@ class Mounter: status, _ = utils._call(cmd, terminate=True, stdout=stdout, stderr=stderr) if status != 0: - raise SandboxError( - "`{}` failed with exit code {}".format(" ".join(cmd), status) - ) + raise SandboxError("`{}` failed with exit code {}".format(" ".join(cmd), status)) # mount() # @@ -108,9 +97,7 @@ class Mounter: options = ",".join([key for key, val in kwargs.items() if val]) - path = cls._mount( - dest, src, mount_type, stdout=stdout, stderr=stderr, options=options - ) + path = cls._mount(dest, src, mount_type, stdout=stdout, stderr=stderr, options=options) try: with _signals.terminator(kill_proc): yield path |