Let cache compression type be controlled, including none.
- No compression is good if the filesystem is already compressed.
This commit is contained in:
parent
6b9dddcbd2
commit
b2e6ab2c3e
4 changed files with 45 additions and 16 deletions
|
|
@ -29,8 +29,10 @@ class WorkerTestCase(unittest.TestCase):
|
|||
|
||||
def test_run_job(self):
|
||||
loop = asyncio.get_event_loop()
|
||||
worker_ = worker.Worker(False, False)
|
||||
compression = "none"
|
||||
worker_ = worker.Worker(False, False, compression)
|
||||
loop.run_until_complete(worker_.create_process())
|
||||
worker_.process.stdin.write(f"{compression}\n".encode("utf-8"))
|
||||
future = worker_.run_tool("foo", tools.metadata)
|
||||
status = loop.run_until_complete(future)
|
||||
self.assertEqual(status, tools.Status.normal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue