Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik

This patch does a few things:
a) Adds the resources location from the .app directory to the read whitelist
b) When it's a non-packaged build, mach run (and various mach tests) set an environment variable for the repo location which we allow reads from.

r=haik,froydnj

MozReview-Commit-ID: KNvAoUs5Ati
This commit is contained in:
Alex Gaynor
2017-04-07 14:53:19 -04:00
parent 12c011a9a4
commit 478321d9d3
8 changed files with 41 additions and 3 deletions

View File

@@ -222,6 +222,7 @@ class MachCommands(MachCommandBase):
return self._run_reftest(**kwargs)
def _run_reftest(self, **kwargs):
kwargs["topsrcdir"] = self.topsrcdir
process_test_objects(kwargs)
reftest = self._spawn(ReftestRunner)
if conditions.is_android(self):