diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-06-18 11:58:38 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-18 15:51:01 +0100 |
commit | b04c174a154dac8411edc83bf1c8c83658f195bd (patch) | |
tree | 86a8982ac04d4285c936d3b44f7862c5c8a5e5f7 /tests | |
parent | 6a9ffd67fe2f69f473226f746bfb154803d863a1 (diff) | |
download | sos-b04c174a154dac8411edc83bf1c8c83658f195bd.tar.gz |
[archive] use threads for xz compression
Moving also building of the command from Archive to Plugin class.
Closes: #1196
Resolves: #1338
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/archive_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py index e3ee469c..76bd912e 100644 --- a/tests/archive_tests.py +++ b/tests/archive_tests.py @@ -9,6 +9,7 @@ import shutil from sos.archive import TarFileArchive from sos.utilities import tail +from sos.policies import Policy # PYCOMPAT import six @@ -18,7 +19,7 @@ class TarFileArchiveTest(unittest.TestCase): def setUp(self): self.tmpdir = tempfile.mkdtemp() - self.tf = TarFileArchive('test', self.tmpdir) + self.tf = TarFileArchive('test', self.tmpdir, Policy(), 1) def tearDown(self): shutil.rmtree(self.tmpdir) |