[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [test-API PATCH 5/7] utils: Allow suffixes in path to the main checkout folder



This patch enables the util scripts to be found in correct path when
using a not-so-standard checkout path. (.../libvirt-test-API.git/...).
---
 utils/Python/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/Python/utils.py b/utils/Python/utils.py
index 6e23138..e0e2dba 100644
--- a/utils/Python/utils.py
+++ b/utils/Python/utils.py
@@ -317,7 +317,7 @@ class Utils(object):
     def locate_utils(self):
         """Get the directory path of 'utils'"""
         pwd = os.getcwd()
-        result = re.search('(.*)libvirt-test-API', pwd)
+        result = re.search('(.*)libvirt-test-API(.*)', pwd)
         return result.group(0) + "/utils"

     def mac_to_ip(self, mac, timeout):
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]