Used as a shortcut to build a successful command result.

Signed-off-by: Yuto KAWAMURA(kawamuray) <[email protected]>
---
 test/py/ganeti.hypervisor.hv_lxc_unittest.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/py/ganeti.hypervisor.hv_lxc_unittest.py 
b/test/py/ganeti.hypervisor.hv_lxc_unittest.py
index b1cb884..817cdb2 100755
--- a/test/py/ganeti.hypervisor.hv_lxc_unittest.py
+++ b/test/py/ganeti.hypervisor.hv_lxc_unittest.py
@@ -32,6 +32,10 @@ from ganeti.hypervisor import hv_lxc
 import testutils
 
 
+def RunResultOk(stdout):
+  return utils.RunResult(0, None, stdout, "", [], None, None)
+
+
 class TestConsole(unittest.TestCase):
   def test(self):
     instance = objects.Instance(name="lxc.example.com",
-- 
1.8.5.5

Reply via email to