mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
8cc0c86186
commit
0608bd7d04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user