solenv/qa/python/gbuildtoide.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 3803460589e6f158267315848728ccaba7d57275 Author: Miklos Vajna <[email protected]> Date: Wed Oct 26 20:12:07 2016 +0200 solenv: fix Windows build Traceback (most recent call last): File "C:cygwinhometdflodejenkinsworkspacelo_gerritConfigwindows_msc_dbgutil_32solenvqapythongbuildtoide.py", line 32, in test_gbuildtoide del(os.environ['LD_LIBRARY_PATH']) # built with ASAN; prevent that File "C:cygwinhometdflodejenkinsworkspacelo_gerritConfigwindows_msc_dbgutil_32instdirprogram\python-core-3.3.0libos.py", line 692, in __delitem__ raise KeyError(key) from None KeyError: 'LD_LIBRARY_PATH' Change-Id: I1575caf90cafffd71dd28fedc46b5e3570848be8 Reviewed-on: https://gerrit.libreoffice.org/30304 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Michael Stahl <[email protected]> diff --git a/solenv/qa/python/gbuildtoide.py b/solenv/qa/python/gbuildtoide.py index 4de079e..e189995 100644 --- a/solenv/qa/python/gbuildtoide.py +++ b/solenv/qa/python/gbuildtoide.py @@ -29,7 +29,8 @@ class CheckGbuildToIde(unittest.TestCase): def test_gbuildtoide(self): os.chdir(os.path.join(os.environ['SRCDIR'], 'solenv', 'qa', 'python', 'selftest')) # make may find instdir/program/libfreebl3.so and fall over if that was - del(os.environ['LD_LIBRARY_PATH']) # built with ASAN; prevent that + if 'LD_LIBRARY_PATH' in os.environ: + del(os.environ['LD_LIBRARY_PATH']) # built with ASAN; prevent that make = os.environ['MAKE'] subprocess.check_call([make, 'gbuildtoide', 'WORKDIR=%s' % self.tempworkmixed]) jsonfiles = os.listdir(os.path.join(self.tempwork, 'GbuildToIde', 'Library')) @@ -70,3 +71,5 @@ class CheckGbuildToIde(unittest.TestCase): if __name__ == "__main__": unittest.main() + +# vim:set shiftwidth=4 softtabstop=4 expandtab: _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
