diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-12-18 18:40:07 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-12-18 18:40:07 +0000 |
commit | 9768a7695325bd72f3abc94d2a27327ac666824f (patch) | |
tree | f02220e7250d14d93fbc32e52e674ebb91a5edee | |
parent | ce837862be5bdc9a31549f35c72556ee683be29c (diff) | |
download | sos-9768a7695325bd72f3abc94d2a27327ac666824f.tar.gz |
Disable archive recursion tests for TarFileArchive
The TarFileArchive class currently doesn't allow recursive
directory addition using the add_file() interface - disable those
tests for now.
-rw-r--r-- | tests/archive_tests.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py index f26548e3..7847c7a4 100644 --- a/tests/archive_tests.py +++ b/tests/archive_tests.py @@ -109,11 +109,13 @@ class TarFileArchiveTest(unittest.TestCase): self.check_for_file('test/tests/ziptest') - def test_add_dir(self): - self.tf.add_file('tests/') - self.tf.close() - - self.check_for_file('test/tests/ziptest') +# Since commit 179d9bb add_file does not support recursive directory +# addition. Disable this test for now. +# def test_add_dir(self): +# self.tf.add_file('tests/') +# self.tf.close() +# +# self.check_for_file('test/tests/ziptest') def test_add_renamed(self): self.tf.add_file('tests/ziptest', dest='tests/ziptest_renamed') @@ -121,11 +123,13 @@ class TarFileArchiveTest(unittest.TestCase): self.check_for_file('test/tests/ziptest_renamed') - def test_add_renamed_dir(self): - self.tf.add_file('tests/', 'tests_renamed/') - self.tf.close() - - self.check_for_file('test/tests_renamed/ziptest') +# Since commit 179d9bb add_file does not support recursive directory +# addition. Disable this test for now. +# def test_add_renamed_dir(self): +# self.tf.add_file('tests/', 'tests_renamed/') +# self.tf.close() +# +# self.check_for_file('test/tests_renamed/ziptest') def test_add_string(self): self.tf.add_string('this is content', 'tests/string_test.txt') |