From 3e0b97b56df5e26fd7cf470184b787e81cad3920 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 14 Nov 2012 09:39:53 +0100
Subject: [PATCH] Don't check for remote command directory as file storage
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This test does not work properly if localstatedir is not β€œ/etc”.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 test/ganeti.bdev_unittest.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/test/ganeti.bdev_unittest.py b/test/ganeti.bdev_unittest.py
index 00347f683..b483d5799 100755
--- a/test/ganeti.bdev_unittest.py
+++ b/test/ganeti.bdev_unittest.py
@@ -392,10 +392,6 @@ class TestComputeWrongFileStoragePathsInternal(unittest.TestCase):
     self.assertEqual(vfsp(["/usr/sbin/vim", "/srv/file-storage"]),
                      ["/usr/sbin/vim"])
 
-    self.assertTrue(vfsp([pathutils.REMOTE_COMMANDS_DIR]),
-                    msg=("Remote commands directory should never be valid"
-                         "for file storage"))
-
 
 class TestComputeWrongFileStoragePaths(testutils.GanetiTestCase):
   def test(self):
-- 
GitLab