diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-05-31 12:13:26 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-06 14:33:59 +0000 |
commit | 09b0cf8a208c46440cdb4d59ef1388522f12857a (patch) | |
tree | 6dab6c64ac15465d20ef45a6ee3c562fc6e0baf9 /tests/testutils/site.py | |
parent | 3660337905dada5ee6bd9419ff83b5a6819f6801 (diff) | |
download | buildstream-09b0cf8a208c46440cdb4d59ef1388522f12857a.tar.gz |
test:utils/site: Consolidate Git environment variables in a single place
We have two different 'site' files that are redundant and both define
some variables in BuildStream environment.
Moving all the git related ones in a single place.
Diffstat (limited to 'tests/testutils/site.py')
-rw-r--r-- | tests/testutils/site.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/testutils/site.py b/tests/testutils/site.py index a7ff415e3..6801ee066 100644 --- a/tests/testutils/site.py +++ b/tests/testutils/site.py @@ -2,7 +2,6 @@ # so we dont have to repeat this everywhere # import os -import subprocess import sys import platform @@ -11,16 +10,6 @@ from buildstream._platform import Platform try: - GIT = utils.get_host_tool('git') - HAVE_GIT = True - out = str(subprocess.check_output(['git', '--version']), "utf-8") - version = tuple(int(x) for x in out.split(' ')[2].split('.')) - HAVE_OLD_GIT = version < (1, 8, 5) -except ProgramNotFoundError: - HAVE_GIT = False - HAVE_OLD_GIT = False - -try: OSTREE_CLI = utils.get_host_tool('ostree') HAVE_OSTREE_CLI = True except ProgramNotFoundError: |