summaryrefslogtreecommitdiff
path: root/buildstream/sandbox/_sandboxdummy.py
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-04-24 22:53:19 +0100
committerChandan Singh <csingh43@bloomberg.net>2019-05-21 12:41:18 +0100
commit070d053e5cc47e572e9f9e647315082bd7a15c63 (patch)
tree7fb0fdff52f9b5f8a18ec8fe9c75b661f9e0839e /buildstream/sandbox/_sandboxdummy.py
parent6c59e7901a52be961c2a1b671cf2b30f90bc4d0a (diff)
downloadbuildstream-070d053e5cc47e572e9f9e647315082bd7a15c63.tar.gz
Move source from 'buildstream' to 'src/buildstream'
This was discussed in #1008. Fixes #1009.
Diffstat (limited to 'buildstream/sandbox/_sandboxdummy.py')
-rw-r--r--buildstream/sandbox/_sandboxdummy.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/buildstream/sandbox/_sandboxdummy.py b/buildstream/sandbox/_sandboxdummy.py
deleted file mode 100644
index 750ddb05d..000000000
--- a/buildstream/sandbox/_sandboxdummy.py
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# Copyright (C) 2017 Codethink Limited
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library. If not, see <http://www.gnu.org/licenses/>.
-#
-# Authors:
-
-from .._exceptions import SandboxError
-from .sandbox import Sandbox
-
-
-class SandboxDummy(Sandbox):
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
- self._reason = kwargs.get("dummy_reason", "no reason given")
-
- def _run(self, command, flags, *, cwd, env):
-
- if not self._has_command(command[0], env):
- raise SandboxError("Staged artifacts do not provide command "
- "'{}'".format(command[0]),
- reason='missing-command')
-
- raise SandboxError("This platform does not support local builds: {}".format(self._reason),
- reason="unavailable-local-sandbox")