test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
  2019-12-06 14:30 [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s Wenjie Li
@ 2019-12-06  5:46 ` Li, WenjieX A
  2019-12-06  8:53 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Li, WenjieX A @ 2019-12-06  5:46 UTC (permalink / raw)
  To: dts; +Cc: Li, WenjieX A

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

Tested-by: Li, WenjieX A <wenjiex.a.li@intel.com>

> -----Original Message-----
> From: Li, WenjieX A
> Sent: Friday, December 6, 2019 10:30 PM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts][PATCH V1] tests/userspace_ethtool: exit the loop in 5s
> 
> exit the loop in 5s at most; if the status still not equel to expected_status, return
> False and make the case fail.
> 
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
>  tests/TestSuite_userspace_ethtool.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index f5583f2..e10c376 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -231,6 +231,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>                  if status == expected_status:
>                      return True
>              time.sleep(1)
> +            retries = retries + 1
>          return False
> 
>      def test_dump_driver_info(self):
> --
> 2.17.1


[-- Attachment #2: TestUserspaceEthtool.log --]
[-- Type: application/octet-stream, Size: 6094 bytes --]

06/12/2019 14:29:08                            dts: 
TEST SUITE : TestUserspaceEthtool
06/12/2019 14:29:08                            dts: NIC :        sageville
06/12/2019 14:29:08              dut.10.238.54.219: 
06/12/2019 14:29:08                         tester: 
06/12/2019 14:29:08              dut.10.238.54.219: rm -rf ./app/test/test_resource_c.res.o
06/12/2019 14:29:08              dut.10.238.54.219: 
06/12/2019 14:29:08              dut.10.238.54.219: rm -rf ./app/test/test_resource_tar.res.o
06/12/2019 14:29:08              dut.10.238.54.219: 
06/12/2019 14:29:08              dut.10.238.54.219: rm -rf ./app/test/test_pci_sysfs.res.o
06/12/2019 14:29:08              dut.10.238.54.219: 
06/12/2019 14:29:08              dut.10.238.54.219: make -j 110 -C examples/ethtool 
06/12/2019 14:29:11              dut.10.238.54.219: make: Entering directory `/root/dpdk/examples/ethtool'
make: Warning: File `/root/dpdk/x86_64-native-linuxapp-gcc/.config' has modification time 19229 s in the future
== lib
make[1]: Warning: File `/root/dpdk/x86_64-native-linuxapp-gcc/.config' has modification time 19228 s in the future
make[2]: Warning: File `.librte_ethtool.a.cmd' has modification time 19287 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
== ethtool-app
make[1]: Warning: File `/root/dpdk/x86_64-native-linuxapp-gcc/.config' has modification time 19227 s in the future
make[2]: Warning: File `.ethtool.cmd' has modification time 19288 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make: warning:  Clock skew detected.  Your build may be incomplete.
make: Leaving directory `/root/dpdk/examples/ethtool'
06/12/2019 14:29:11           TestUserspaceEthtool: Test Case test_port_config Begin
06/12/2019 14:29:11              dut.10.238.54.219: 
06/12/2019 14:29:11                         tester: 
06/12/2019 14:29:11              dut.10.238.54.219: ./examples/ethtool/ethtool-app/x86_64-native-linuxapp-gcc/ethtool -c f -n 4
06/12/2019 14:29:13              dut.10.238.54.219: EAL: Detected 112 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: PCI device 0000:00:04.0 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.1 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.2 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.3 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.4 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.5 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.6 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.7 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:1a:00.0 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.1 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.2 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:1a:00.3 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:3b:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1563 net_ixgbe
EAL: PCI device 0000:3b:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1563 net_ixgbe
EAL: PCI device 0000:80:04.0 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.1 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.2 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.3 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.4 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.5 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.6 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.7 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:d8:00.0 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
EAL: PCI device 0000:d8:00.1 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
Number of NICs: 2
Init port 0..
Init port 1..
06/12/2019 14:29:13              dut.10.238.54.219: portstats 0 
06/12/2019 14:29:13              dut.10.238.54.219: portstats 0 
Port 0 stats
   In: 0 (0 bytes)
  Out: 0 (0 bytes)
  Err: 0
06/12/2019 14:29:23              dut.10.238.54.219: stop 0
06/12/2019 14:29:23              dut.10.238.54.219: stop 0
06/12/2019 14:29:23              dut.10.238.54.219: link
06/12/2019 14:29:23              dut.10.238.54.219: link
Port 0: Up
Port 1: Up

06/12/2019 14:29:24              dut.10.238.54.219: link
06/12/2019 14:29:24              dut.10.238.54.219: link
Port 0: Up
Port 1: Up

06/12/2019 14:29:25              dut.10.238.54.219: link
06/12/2019 14:29:25              dut.10.238.54.219: link
Port 0: Up
Port 1: Up

06/12/2019 14:29:26              dut.10.238.54.219: link
06/12/2019 14:29:26              dut.10.238.54.219: link
Port 0: Up
Port 1: Up

06/12/2019 14:29:27              dut.10.238.54.219: link
06/12/2019 14:29:27              dut.10.238.54.219: link
Port 0: Up
Port 1: Up

06/12/2019 14:29:28           TestUserspaceEthtool: Test Case test_port_config Result FAILED: 'Fail to stop port0'
06/12/2019 14:29:28              dut.10.238.54.219: kill_all: called by dut and has no prefix list.
06/12/2019 14:29:31              dut.10.238.54.219: Killed
[PEXPECT]# 
06/12/2019 14:29:31                            dts: 
TEST SUITE ENDED: TestUserspaceEthtool

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

* Re: [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
  2019-12-06 14:30 [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s Wenjie Li
  2019-12-06  5:46 ` Li, WenjieX A
@ 2019-12-06  8:53 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-12-06  8:53 UTC (permalink / raw)
  To: Li, WenjieX A, dts; +Cc: Li, WenjieX A

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li
> Sent: Friday, December 6, 2019 10:30 PM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
> 
> exit the loop in 5s at most; if the status still not equel to expected_status,
> return False and make the case fail.
> 
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
>  tests/TestSuite_userspace_ethtool.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index f5583f2..e10c376 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -231,6 +231,7 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>                  if status == expected_status:
>                      return True
>              time.sleep(1)
> +            retries = retries + 1
>          return False
> 
>      def test_dump_driver_info(self):
> --
> 2.17.1


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

* [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s
@ 2019-12-06 14:30 Wenjie Li
  2019-12-06  5:46 ` Li, WenjieX A
  2019-12-06  8:53 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Wenjie Li @ 2019-12-06 14:30 UTC (permalink / raw)
  To: dts; +Cc: Wenjie Li

exit the loop in 5s at most; if the status still not equel to
expected_status, return False and make the case fail.

Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
---
 tests/TestSuite_userspace_ethtool.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index f5583f2..e10c376 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -231,6 +231,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
                 if status == expected_status:
                     return True
             time.sleep(1)
+            retries = retries + 1
         return False
 
     def test_dump_driver_info(self):
-- 
2.17.1


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

end of thread, other threads:[~2019-12-06  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 14:30 [dts] [PATCH V1] tests/userspace_ethtool: exit the loop in 5s Wenjie Li
2019-12-06  5:46 ` Li, WenjieX A
2019-12-06  8:53 ` 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).