diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-02-08 18:42:15 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-02-08 18:42:15 +0100 |
commit | 8fcee1df524de44fd3e04bd0efadc41556df09c6 (patch) | |
tree | e54e3d3dea309bd1f248fccc0de85ef6e545d2d7 /tests/test_find_top_level.py | |
parent | 4b3b48d053db6f3d48e76c1cc8b7d73eeb687e64 (diff) | |
download | gemato-8fcee1df524de44fd3e04bd0efadc41556df09c6.tar.gz |
find_top_level: Remove broken cross-device test
Remove the cross-device test that wrongly assumed we will be traversing
logical parent directories rather than physical. In other words, '..'
in the symlinked filesystem will never contain the Manifest file.
Diffstat (limited to 'tests/test_find_top_level.py')
-rw-r--r-- | tests/test_find_top_level.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test_find_top_level.py b/tests/test_find_top_level.py index 5e20453..a326384 100644 --- a/tests/test_find_top_level.py +++ b/tests/test_find_top_level.py @@ -170,26 +170,6 @@ class TestCrossDevice(TempDirTestCase): os.path.join(self.dir, 'test'))) -class TestCrossDeviceManifest(TempDirTestCase): - """ - Test behavior when attempting to use a Manifest from other device - (symlinked). - """ - - DIRS = ['sub'] - - def setUp(self): - if not os.path.exists('/proc/version'): - raise unittest.SkipTest('/proc/version does not exist') - super(TestCrossDeviceManifest, self).setUp() - os.symlink('/proc/version', os.path.join(self.dir, 'Manifest')) - - def test_find_top_level_manifest(self): - self.assertIsNone( - gemato.find_top_level.find_top_level_manifest( - os.path.join(self.dir, 'sub'))) - - class TestCompressedManifest(TempDirTestCase): """ Test for finding compressed Manifest in a plain tree. |