From 8fcee1df524de44fd3e04bd0efadc41556df09c6 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 8 Feb 2018 18:42:15 +0100 Subject: 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. --- tests/test_find_top_level.py | 20 -------------------- 1 file changed, 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. -- cgit v1.2.3