Bug 1029102. Don't drop webidlyacc.py files caching the webidl grammar in the source dir when running webidl parser tests. r=gps

This commit is contained in:
Boris Zbarsky 2014-06-24 23:36:39 -04:00
parent 8cc0c86186
commit 0608bd7d04

View File

@ -37,5 +37,15 @@ class WebIDLProvider(MachCommandBase):
sys.path.insert(0, os.path.join(self.topsrcdir, 'other-licenses',
'ply'))
# Make sure we drop our cached grammar bits in the objdir, not
# wherever we happen to be running from.
os.chdir(self.topobjdir)
# Now we're going to create the cached grammar file in the
# objdir. But we're going to try loading it as a python
# module, so we need to make sure the objdir is in our search
# path.
sys.path.insert(0, self.topobjdir);
from runtests import run_tests
return run_tests(None, verbose=verbose)