diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2021-03-18 12:55:50 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-04-15 11:33:03 -0400 |
commit | 3bb56538d1f9734ad09d88751256fd1b1301f471 (patch) | |
tree | d1a357dad880532df75d289b31da540cf24b60ad /tests/unittests/archive_tests.py | |
parent | fe508683da86ab8d136a2d0d848da3c3f13486ac (diff) | |
download | sos-3bb56538d1f9734ad09d88751256fd1b1301f471.tar.gz |
[unittests] Update file paths in unittests for new directory layout
Updates the filepaths in our unittests for the temp data files to
reflect their new location in the updated directory layout.
Related: #2431
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests/archive_tests.py')
-rw-r--r-- | tests/unittests/archive_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/archive_tests.py b/tests/unittests/archive_tests.py index 320006d0..db97feba 100644 --- a/tests/unittests/archive_tests.py +++ b/tests/unittests/archive_tests.py @@ -37,10 +37,10 @@ class TarFileArchiveTest(unittest.TestCase): 'test.tar'))) def test_add_file(self): - self.tf.add_file('tests/ziptest') + self.tf.add_file('tests/unittests/ziptest') self.tf.finalize('auto') - self.check_for_file('test/tests/ziptest') + self.check_for_file('test/tests/unittests/ziptest') def test_add_node_dev_null(self): st = os.lstat('/dev/null') @@ -69,10 +69,10 @@ class TarFileArchiveTest(unittest.TestCase): # self.check_for_file('test/tests/ziptest') def test_add_renamed(self): - self.tf.add_file('tests/ziptest', dest='tests/ziptest_renamed') + self.tf.add_file('tests/unittests/ziptest', dest='tests/unittests/ziptest_renamed') self.tf.finalize('auto') - self.check_for_file('test/tests/ziptest_renamed') + self.check_for_file('test/tests/unittests/ziptest_renamed') # Since commit 179d9bb add_file does not support recursive directory # addition. Disable this test for now. |