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

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

 



On 03/21/2012 08:46 PM, Peter Krempa wrote:
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):

   ACK, thanks

   Guannan Ren

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]