diff options
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/qa/python/gbuildtoide.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/solenv/qa/python/gbuildtoide.py b/solenv/qa/python/gbuildtoide.py index 6184f9170115..71c67754e6ab 100644 --- a/solenv/qa/python/gbuildtoide.py +++ b/solenv/qa/python/gbuildtoide.py @@ -21,17 +21,19 @@ import unittest import json import os import os.path +import tempfile class CheckGbuildToIde(unittest.TestCase): def test_gbuildtoide(self): + tempwork = tempfile.mkdtemp() os.chdir(os.path.join(os.environ['SRCDIR'], 'solenv', 'qa', 'python', 'selftest')) - subprocess.check_call(['make', 'gbuildtoide']) - jsonfiles = os.listdir(os.path.join(os.environ['WORKDIR'], 'GbuildToIde', 'Library')) + subprocess.check_call(['make', 'gbuildtoide', 'WORKDIR=%s' % tempwork]) + jsonfiles = os.listdir(os.path.join(tempwork, 'GbuildToIde', 'Library')) gbuildlibs = [] for jsonfilename in jsonfiles: - with open(os.path.join(os.environ['WORKDIR'], 'GbuildToIde', 'Library', jsonfilename), 'r') as f: + with open(os.path.join(tempwork, 'GbuildToIde', 'Library', jsonfilename), 'r') as f: print('loading %s' % jsonfilename) gbuildlibs.append(json.load(f)) foundlibs = set() |