fix typo issue in output message. yufengmx (2): tests/kni: fix typo in output message tests/vm_power_manager: fix typo in output message tests/TestSuite_kni.py | 4 ++-- tests/TestSuite_vm_power_manager.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) -- 1.9.3
fix typo issue in output message. Signed-off-by: yufengmx <yufengx.mo@intel.com> --- tests/TestSuite_kni.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index cf2403d..f1f85df 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -780,7 +780,7 @@ class TestKni(TestCase): total_cores = len(self.config['tx_cores'] + self.config[ 'rx_cores'] + self.config['kernel_cores']) if total_cores > self.dut_physical_cores(): - self.logger.info("Skiping step %s (%d cores needed, got %d)" % + self.logger.info("Skipping step %s (%d cores needed, got %d)" % (step['config'], total_cores, self.dut_physical_cores()) ) @@ -850,7 +850,7 @@ class TestKni(TestCase): total_cores = len(self.config['tx_cores'] + self.config[ 'rx_cores'] + self.config['kernel_cores']) if total_cores > self.dut_physical_cores(): - self.logger.info("Skiping step %s (%d cores needed, got %d)" % + self.logger.info("Skipping step %s (%d cores needed, got %d)" % (step['config'], total_cores, self.dut_physical_cores()) ) -- 1.9.3
fix typo issue in output message. Signed-off-by: yufengmx <yufengx.mo@intel.com> --- tests/TestSuite_vm_power_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py index 7620c19..1b9a965 100644 --- a/tests/TestSuite_vm_power_manager.py +++ b/tests/TestSuite_vm_power_manager.py @@ -151,7 +151,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator): self.vm_dut.send_expect( "set_cpu_freq %d down" % vcpu, "vmpower\(guest\)>") cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu]) - print utils.GREEN("After freqency down, freq is %d\n" % cur_freq) + print utils.GREEN("After frequency down, freq is %d\n" % cur_freq) self.verify( ori_freq > cur_freq, "Cpu freqenecy can not scale down") ori_freq = cur_freq @@ -178,7 +178,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator): self.vm_dut.send_expect( "set_cpu_freq %d up" % vcpu, "vmpower\(guest\)>") cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu]) - print utils.GREEN("After freqency up, freq is %d\n" % cur_freq) + print utils.GREEN("After frequency up, freq is %d\n" % cur_freq) self.verify( cur_freq > ori_freq, "Cpu freqenecy can not scale up") ori_freq = cur_freq @@ -205,7 +205,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator): max_freq = int(out) self.verify(freq == max_freq, "Cpu max frequency not correct") - print utils.GREEN("After freqency max, freq is %d\n" % max_freq) + print utils.GREEN("After frequency max, freq is %d\n" % max_freq) self.vm_dut.send_expect("quit", "# ") def test_vm_power_managment_freqmin(self): @@ -228,7 +228,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator): min_freq = int(out) self.verify(freq == min_freq, "Cpu min frequency not correct") - print utils.GREEN("After freqency min, freq is %d\n" % min_freq) + print utils.GREEN("After frequency min, freq is %d\n" % min_freq) self.vm_dut.send_expect("quit", "# ") def test_vm_power_multivms(self): @@ -269,7 +269,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator): cpu_idx = 0 for cpu in cpus: cpu_map = '[%d]: Physical CPU %s' % (cpu_idx, cpu) - self.verify(cpu_map in vm_info, "Faile to map host cpu %s" % cpu) + self.verify(cpu_map in vm_info, "Failed to map host cpu %s" % cpu) cpu_idx += 1 out = vm2_dut.build_dpdk_apps("examples/vm_power_manager/guest_cli") -- 1.9.3
> -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > Sent: Wednesday, July 10, 2019 11:09 AM > To: dts@dpdk.org > Cc: Mo, YufengX <yufengx.mo@intel.com> > Subject: [dts] [PATCH V1 1/2] tests/kni: fix typo in output message > > > fix typo issue in output message. > > Signed-off-by: yufengmx <yufengx.mo@intel.com> Acked-by : Lei Yao <lei.a.yao@intel.com> > --- > tests/TestSuite_kni.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py > index cf2403d..f1f85df 100644 > --- a/tests/TestSuite_kni.py > +++ b/tests/TestSuite_kni.py > @@ -780,7 +780,7 @@ class TestKni(TestCase): > total_cores = len(self.config['tx_cores'] + self.config[ > 'rx_cores'] + self.config['kernel_cores']) > if total_cores > self.dut_physical_cores(): > - self.logger.info("Skiping step %s (%d cores needed, got %d)" % > + self.logger.info("Skipping step %s (%d cores needed, got %d)" % > (step['config'], total_cores, > self.dut_physical_cores()) > ) > @@ -850,7 +850,7 @@ class TestKni(TestCase): > total_cores = len(self.config['tx_cores'] + self.config[ > 'rx_cores'] + self.config['kernel_cores']) > if total_cores > self.dut_physical_cores(): > - self.logger.info("Skiping step %s (%d cores needed, got %d)" % > + self.logger.info("Skipping step %s (%d cores needed, got %d)" % > (step['config'], total_cores, > self.dut_physical_cores()) > ) > -- > 1.9.3
> -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > Sent: Wednesday, July 10, 2019 11:09 AM > To: dts@dpdk.org > Cc: Mo, YufengX <yufengx.mo@intel.com> > Subject: [dts] [PATCH V1 2/2] tests/vm_power_manager: fix typo in output > message > > > fix typo issue in output message. > > Signed-off-by: yufengmx <yufengx.mo@intel.com> Acked-by: Lei Yao <lei.a.yao@intel.com> > --- > tests/TestSuite_vm_power_manager.py | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/tests/TestSuite_vm_power_manager.py > b/tests/TestSuite_vm_power_manager.py > index 7620c19..1b9a965 100644 > --- a/tests/TestSuite_vm_power_manager.py > +++ b/tests/TestSuite_vm_power_manager.py > @@ -151,7 +151,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > self.vm_dut.send_expect( > "set_cpu_freq %d down" % vcpu, "vmpower\(guest\)>") > cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu]) > - print utils.GREEN("After freqency down, freq is %d\n" % cur_freq) > + print utils.GREEN("After frequency down, freq is %d\n" % cur_freq) > self.verify( > ori_freq > cur_freq, "Cpu freqenecy can not scale down") > ori_freq = cur_freq > @@ -178,7 +178,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > self.vm_dut.send_expect( > "set_cpu_freq %d up" % vcpu, "vmpower\(guest\)>") > cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu]) > - print utils.GREEN("After freqency up, freq is %d\n" % cur_freq) > + print utils.GREEN("After frequency up, freq is %d\n" % cur_freq) > self.verify( > cur_freq > ori_freq, "Cpu freqenecy can not scale up") > ori_freq = cur_freq > @@ -205,7 +205,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > max_freq = int(out) > > self.verify(freq == max_freq, "Cpu max frequency not correct") > - print utils.GREEN("After freqency max, freq is %d\n" % max_freq) > + print utils.GREEN("After frequency max, freq is %d\n" % max_freq) > self.vm_dut.send_expect("quit", "# ") > > def test_vm_power_managment_freqmin(self): > @@ -228,7 +228,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > min_freq = int(out) > > self.verify(freq == min_freq, "Cpu min frequency not correct") > - print utils.GREEN("After freqency min, freq is %d\n" % min_freq) > + print utils.GREEN("After frequency min, freq is %d\n" % min_freq) > self.vm_dut.send_expect("quit", "# ") > > def test_vm_power_multivms(self): > @@ -269,7 +269,7 @@ class TestVmPowerManager(TestCase, > IxiaPacketGenerator): > cpu_idx = 0 > for cpu in cpus: > cpu_map = '[%d]: Physical CPU %s' % (cpu_idx, cpu) > - self.verify(cpu_map in vm_info, "Faile to map host cpu %s" % cpu) > + self.verify(cpu_map in vm_info, "Failed to map host cpu %s" % cpu) > cpu_idx += 1 > > out = > vm2_dut.build_dpdk_apps("examples/vm_power_manager/guest_cli") > -- > 1.9.3
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx
> Sent: Wednesday, July 10, 2019 11:09 AM
> To: dts@dpdk.org
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts] [PATCH V1 2/2] tests/vm_power_manager: fix typo in output
> message
>
>
> fix typo issue in output message.
>
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
> tests/TestSuite_vm_power_manager.py | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tests/TestSuite_vm_power_manager.py
> b/tests/TestSuite_vm_power_manager.py
> index 7620c19..1b9a965 100644
> --- a/tests/TestSuite_vm_power_manager.py
> +++ b/tests/TestSuite_vm_power_manager.py
> @@ -151,7 +151,7 @@ class TestVmPowerManager(TestCase,
> IxiaPacketGenerator):
> self.vm_dut.send_expect(
> "set_cpu_freq %d down" % vcpu, "vmpower\(guest\)>")
> cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu])
> - print utils.GREEN("After freqency down, freq is %d\n" % cur_freq)
> + print utils.GREEN("After frequency down, freq is %d\n" % cur_freq)
> self.verify(
> ori_freq > cur_freq, "Cpu freqenecy can not scale down")
> ori_freq = cur_freq
> @@ -178,7 +178,7 @@ class TestVmPowerManager(TestCase,
> IxiaPacketGenerator):
> self.vm_dut.send_expect(
> "set_cpu_freq %d up" % vcpu, "vmpower\(guest\)>")
> cur_freq = self.get_cpu_frequency(self.vcpu_map[vcpu])
> - print utils.GREEN("After freqency up, freq is %d\n" % cur_freq)
> + print utils.GREEN("After frequency up, freq is %d\n" % cur_freq)
> self.verify(
> cur_freq > ori_freq, "Cpu freqenecy can not scale up")
> ori_freq = cur_freq
> @@ -205,7 +205,7 @@ class TestVmPowerManager(TestCase,
> IxiaPacketGenerator):
> max_freq = int(out)
>
> self.verify(freq == max_freq, "Cpu max frequency not correct")
> - print utils.GREEN("After freqency max, freq is %d\n" % max_freq)
> + print utils.GREEN("After frequency max, freq is %d\n" % max_freq)
> self.vm_dut.send_expect("quit", "# ")
>
> def test_vm_power_managment_freqmin(self):
> @@ -228,7 +228,7 @@ class TestVmPowerManager(TestCase,
> IxiaPacketGenerator):
> min_freq = int(out)
>
> self.verify(freq == min_freq, "Cpu min frequency not correct")
> - print utils.GREEN("After freqency min, freq is %d\n" % min_freq)
> + print utils.GREEN("After frequency min, freq is %d\n" % min_freq)
> self.vm_dut.send_expect("quit", "# ")
>
> def test_vm_power_multivms(self):
> @@ -269,7 +269,7 @@ class TestVmPowerManager(TestCase,
> IxiaPacketGenerator):
> cpu_idx = 0
> for cpu in cpus:
> cpu_map = '[%d]: Physical CPU %s' % (cpu_idx, cpu)
> - self.verify(cpu_map in vm_info, "Faile to map host cpu %s" % cpu)
> + self.verify(cpu_map in vm_info, "Failed to map host cpu %s" % cpu)
> cpu_idx += 1
>
> out =
> vm2_dut.build_dpdk_apps("examples/vm_power_manager/guest_cli")
> --
> 1.9.3