Put a hole in the sandbox once. Not once per worker.

This commit is contained in:
Andrew Hamilton 2016-03-12 23:16:52 +00:00
parent ccdd89fa28
commit 6455271aa0
3 changed files with 21 additions and 17 deletions

View file

@ -12,6 +12,7 @@ import unittest
import sandbox_fs
import tools
import vigil
import worker
@ -43,8 +44,7 @@ class WorkerTestCase(unittest.TestCase):
def test_run_job_with_sandbox(self):
temp_dir = tempfile.mkdtemp()
sandbox = sandbox_fs.SandboxFs(temp_dir)
sandbox.mount()
sandbox = vigil.make_sandbox(temp_dir)
try:
self._test_worker(sandbox)
finally: