Put a hole in the sandbox once. Not once per worker.
This commit is contained in:
parent
ccdd89fa28
commit
6455271aa0
3 changed files with 21 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue