test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [patch V1] alter the regular expression format of hostfwd value
@ 2019-05-13  0:29 lihong
       [not found] ` <4DC48DF9BDA3E54A836D2D3C057DEC6F0B17EF21@SHSMSX101.ccr.corp.intel.com>
  2019-05-22  8:58 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2019-05-13  0:29 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/qemu_kvm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py
index c3e8f37..80a39c8 100644
--- a/framework/qemu_kvm.py
+++ b/framework/qemu_kvm.py
@@ -562,7 +562,7 @@ class QEMUKvm(VirtBase):
         Use regular expression to check if hostfwd value format is correct.
         """
         regx_ip = '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
-        regx_hostfwd = r'["tcp" | "udp"]?:%s?:\d+-%s?:\d+' % (regx_ip, regx_ip)
+        regx_hostfwd = r'(tcp|udp)?:(%s)?:\d+-(%s)?:\d+' % (regx_ip, regx_ip)
         if not re.match(regx_hostfwd, opt_hostfwd):
             raise Exception("Option opt_hostfwd format is not correct,\n" +
                             "it is %s,\n " % opt_hostfwd +
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-22  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-13  0:29 [dts] [patch V1] alter the regular expression format of hostfwd value lihong
     [not found] ` <4DC48DF9BDA3E54A836D2D3C057DEC6F0B17EF21@SHSMSX101.ccr.corp.intel.com>
2019-05-13  7:58   ` Zhang, YanX A
2019-05-22  8:58 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).