summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-10 21:11:17 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-10 21:11:54 +0900
commita867f293352f8db7176a9eaf727b3536b2ea2fae (patch)
tree9b1a06173c8008719040298c778c374fb8b7fbe9
parenta9cbb0f7074286f5323954d327bc923c0028e7c0 (diff)
downloadbuildstream-a867f293352f8db7176a9eaf727b3536b2ea2fae.tar.gz
_workspaces.py: Assert that configuration is only saved in the main process.
-rw-r--r--buildstream/_workspaces.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_workspaces.py b/buildstream/_workspaces.py
index cd4448054..8561dfe54 100644
--- a/buildstream/_workspaces.py
+++ b/buildstream/_workspaces.py
@@ -297,6 +297,8 @@ class Workspaces():
# create_workspace permanent
#
def save_config(self):
+ assert utils._is_main_process()
+
config = {
'format-version': BST_WORKSPACE_FORMAT_VERSION,
'workspaces': {