summaryrefslogtreecommitdiff
path: root/solenv/qa
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2016-11-23 01:33:54 +0100
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2016-11-25 02:05:34 +0000
commite62fc464f21fdaace28709f316becfa0fc54c0e8 (patch)
treefaf6b366f0168da79dcfd16e15745ba2dd7d2a27 /solenv/qa
parent1fcd5c48a0ae25822645b83dff42ad3c246e5b28 (diff)
use gbuild prefix for tempdirs
Change-Id: Icc262c51fd70ae35b44722be8d4ab767b69ae2a8 Reviewed-on: https://gerrit.libreoffice.org/31094 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'solenv/qa')
-rw-r--r--solenv/qa/python/gbuildtojson.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/solenv/qa/python/gbuildtojson.py b/solenv/qa/python/gbuildtojson.py
index 67782d53ad3f..e09139bc59a7 100644
--- a/solenv/qa/python/gbuildtojson.py
+++ b/solenv/qa/python/gbuildtojson.py
@@ -39,7 +39,7 @@ class CheckGbuildToJson(unittest.TestCase):
def setUp(self):
getgbuildtesttools(self)
clearmakevars()
- self.tempwork = tempfile.mkdtemp()
+ self.tempwork = tempfile.mkdtemp(prefix='gbuild')
def tearDown(self):
shutil.rmtree(self.tempwork)
@@ -47,7 +47,7 @@ class CheckGbuildToJson(unittest.TestCase):
def test_gbuildtojson(self):
os.makedirs(os.path.join(self.tempwork, 'LinkTarget', 'Executable'))
shutil.copy(self.gbuildtojson, os.path.join(self.tempwork, 'LinkTarget', 'Executable'))
- (bashscripthandle, bashscriptname) = tempfile.mkstemp()
+ (bashscripthandle, bashscriptname) = tempfile.mkstemp('gbuild')
bashscript = os.fdopen(bashscripthandle, 'w', newline='\n')
bashscript.write("set -e\n")
bashscript.write("cd %s/solenv/qa/python/selftest\n" % os.environ['SRCDIR'])
@@ -95,8 +95,8 @@ class CheckGbuildToJsonModules(unittest.TestCase):
def setUp(self):
getgbuildtesttools(self)
clearmakevars()
- self.tempwork = tempfile.mkdtemp()
- self.tempsrc = tempfile.mkdtemp()
+ self.tempwork = tempfile.mkdtemp(prefix='gbuild')
+ self.tempsrc = tempfile.mkdtemp(prefix='gbuild')
self.srcdir = os.environ['SRCDIR']
if os.environ['OS'] == 'WNT':
self.tempworkmixed = self.tempwork.replace('\\','/')
@@ -130,7 +130,7 @@ class CheckGbuildToJsonModules(unittest.TestCase):
shutil.copy(self.gbuildtojson, os.path.join(self.tempwork, 'LinkTarget', 'Executable'))
if module != 'solenv':
shutil.copytree(os.path.join(os.environ['SRCDIR'], module), os.path.join(self.tempsrc, module))
- (bashscripthandle, bashscriptname) = tempfile.mkstemp()
+ (bashscripthandle, bashscriptname) = tempfile.mkstemp(prefix='gbuild')
bashscript = os.fdopen(bashscripthandle, 'w', newline='\n')
bashscript.write("set -e\n")
bashscript.write("cd %s/%s\n" % (self.tempsrc.replace('\\','/'), module))