diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-05 14:45:01 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-06 14:34:00 +0000 |
commit | 556f71c9a3ccdc4c524f261926a364379506066d (patch) | |
tree | 1eaa6f496116e0280c9b4dd7ab29ea0b11fe6f73 /tests/testutils | |
parent | 75433adb848cd92b1600391ff1553feaaf274608 (diff) | |
download | buildstream-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')
-rw-r--r-- | tests/testutils/site.py | 7 |
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') |