summaryrefslogtreecommitdiff
path: root/tests/testutils/site.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 14:45:01 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 14:34:00 +0000
commit556f71c9a3ccdc4c524f261926a364379506066d (patch)
tree1eaa6f496116e0280c9b4dd7ab29ea0b11fe6f73 /tests/testutils/site.py
parent75433adb848cd92b1600391ff1553feaaf274608 (diff)
downloadbuildstream-556f71c9a3ccdc4c524f261926a364379506066d.tar.gz
test:utils/site: Consolidate IS_LINUX/WSL/Windows in a single site
We currently have two sites file containing redundant information. - tests/testutils/site.py: Remove IS_{LINUX,WSL,WINDOWS} - rest: Change imports to import those from buildstream/tests/_utils/site.py
Diffstat (limited to 'tests/testutils/site.py')
-rw-r--r--tests/testutils/site.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/testutils/site.py b/tests/testutils/site.py
index 3058e6d6f..8cb5229ae 100644
--- a/tests/testutils/site.py
+++ b/tests/testutils/site.py
@@ -1,9 +1,6 @@
# Some things resolved about the execution site,
# so we dont have to repeat this everywhere
#
-import os
-import sys
-import platform
from buildstream import utils, ProgramNotFoundError
@@ -19,7 +16,3 @@ try:
HAVE_OSTREE = True
except (ImportError, ValueError):
HAVE_OSTREE = False
-
-IS_LINUX = os.getenv('BST_FORCE_BACKEND', sys.platform).startswith('linux')
-IS_WSL = (IS_LINUX and 'Microsoft' in platform.uname().release)
-IS_WINDOWS = (os.name == 'nt')