test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py
@ 2015-11-13  5:17 Jingguo Fu
  2015-11-13  6:00 ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Jingguo Fu @ 2015-11-13  5:17 UTC (permalink / raw)
  To: dts; +Cc: Jingguo Fu

Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
---
 framework/dut.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/framework/dut.py b/framework/dut.py
index 70bd146..37d6050 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -775,12 +775,13 @@ class Dut(Crb):
                 port_cfg['source'] = 'cfg'
             else:
                 port_cfg = {}
-
-            for key in ['intf', 'mac', 'numa', 'peer', 'source']:
+            for key in ['intf', 'mac', 'peer', 'source']:
                 if key in port_cfg:
                     if key in port and port_cfg[key].lower() != port[key].lower():
                         self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper()))
                     port[key] = port_cfg[key].lower()
+            if 'numa' in port_cfg:
+                port['numa'] = port_cfg['numa']
 
     def map_available_ports(self):
         """
-- 
1.9.3

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

* Re: [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py
  2015-11-13  5:17 [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py Jingguo Fu
@ 2015-11-13  6:00 ` Liu, Yong
  2015-11-23  6:44   ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yong @ 2015-11-13  6:00 UTC (permalink / raw)
  To: Jingguo Fu, dts

Hi Jingguo,
Please add warning when configuration not match real. And please 
separate comments from email subject.

On 11/13/2015 01:17 PM, Jingguo Fu wrote:
> Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
> ---
>   framework/dut.py | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/framework/dut.py b/framework/dut.py
> index 70bd146..37d6050 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -775,12 +775,13 @@ class Dut(Crb):
>                   port_cfg['source'] = 'cfg'
>               else:
>                   port_cfg = {}
> -
> -            for key in ['intf', 'mac', 'numa', 'peer', 'source']:
> +            for key in ['intf', 'mac', 'peer', 'source']:
>                   if key in port_cfg:
>                       if key in port and port_cfg[key].lower() != port[key].lower():
>                           self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper()))
>                       port[key] = port_cfg[key].lower()
> +            if 'numa' in port_cfg:
> +                port['numa'] = port_cfg['numa']
>   
Better to check whether assigned numa matched detected numa. If they are 
mismatched, just send out the warning like "mac" and other parameters.

>       def map_available_ports(self):
>           """

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

* Re: [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py
  2015-11-13  6:00 ` Liu, Yong
@ 2015-11-23  6:44   ` Liu, Yong
  2015-11-23  6:52     ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yong @ 2015-11-23  6:44 UTC (permalink / raw)
  To: Jingguo Fu, dts

Applied. Thanks.

On 11/13/2015 02:00 PM, Liu, Yong wrote:
> Hi Jingguo,
> Please add warning when configuration not match real. And please 
> separate comments from email subject.
>
> On 11/13/2015 01:17 PM, Jingguo Fu wrote:
>> Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
>> ---
>>   framework/dut.py | 5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/framework/dut.py b/framework/dut.py
>> index 70bd146..37d6050 100644
>> --- a/framework/dut.py
>> +++ b/framework/dut.py
>> @@ -775,12 +775,13 @@ class Dut(Crb):
>>                   port_cfg['source'] = 'cfg'
>>               else:
>>                   port_cfg = {}
>> -
>> -            for key in ['intf', 'mac', 'numa', 'peer', 'source']:
>> +            for key in ['intf', 'mac', 'peer', 'source']:
>>                   if key in port_cfg:
>>                       if key in port and port_cfg[key].lower() != 
>> port[key].lower():
>>                           self.logger.warning("CONFIGURED %s NOT SAME 
>> AS SCANNED!!!" % (key.upper()))
>>                       port[key] = port_cfg[key].lower()
>> +            if 'numa' in port_cfg:
>> +                port['numa'] = port_cfg['numa']
> Better to check whether assigned numa matched detected numa. If they 
> are mismatched, just send out the warning like "mac" and other 
> parameters.
>
>>       def map_available_ports(self):
>>           """
>

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

* Re: [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py
  2015-11-23  6:44   ` Liu, Yong
@ 2015-11-23  6:52     ` Liu, Yong
  0 siblings, 0 replies; 4+ messages in thread
From: Liu, Yong @ 2015-11-23  6:52 UTC (permalink / raw)
  To: Jingguo Fu, dts

Sorry, tope email. Please ignore this.

On 11/23/2015 02:44 PM, Liu, Yong wrote:
> Applied. Thanks.
>
> On 11/13/2015 02:00 PM, Liu, Yong wrote:
>> Hi Jingguo,
>> Please add warning when configuration not match real. And please 
>> separate comments from email subject.
>>
>> On 11/13/2015 01:17 PM, Jingguo Fu wrote:
>>> Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
>>> ---
>>>   framework/dut.py | 5 +++--
>>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/framework/dut.py b/framework/dut.py
>>> index 70bd146..37d6050 100644
>>> --- a/framework/dut.py
>>> +++ b/framework/dut.py
>>> @@ -775,12 +775,13 @@ class Dut(Crb):
>>>                   port_cfg['source'] = 'cfg'
>>>               else:
>>>                   port_cfg = {}
>>> -
>>> -            for key in ['intf', 'mac', 'numa', 'peer', 'source']:
>>> +            for key in ['intf', 'mac', 'peer', 'source']:
>>>                   if key in port_cfg:
>>>                       if key in port and port_cfg[key].lower() != 
>>> port[key].lower():
>>>                           self.logger.warning("CONFIGURED %s NOT 
>>> SAME AS SCANNED!!!" % (key.upper()))
>>>                       port[key] = port_cfg[key].lower()
>>> +            if 'numa' in port_cfg:
>>> +                port['numa'] = port_cfg['numa']
>> Better to check whether assigned numa matched detected numa. If they 
>> are mismatched, just send out the warning like "mac" and other 
>> parameters.
>>
>>>       def map_available_ports(self):
>>>           """
>>
>

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

end of thread, other threads:[~2015-11-23  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13  5:17 [dts] [DTS][PATCH] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py Jingguo Fu
2015-11-13  6:00 ` Liu, Yong
2015-11-23  6:44   ` Liu, Yong
2015-11-23  6:52     ` Liu, Yong

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).