test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/test_result: fix saving result failed
@ 2021-03-31  2:21 Haiyang Zhao
  2021-03-31  2:35 ` Zhao, HaiyangX
  0 siblings, 1 reply; 3+ messages in thread
From: Haiyang Zhao @ 2021-03-31  2:21 UTC (permalink / raw)
  To: dts; +Cc: Haiyang Zhao

when execution.cfg has multiple sections and the drivername is different,
the test result of the second drivername will not be recorded, fix it
by adding judgement.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/test_result.py | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/framework/test_result.py b/framework/test_result.py
index 6dd94451..77fe8f00 100644
--- a/framework/test_result.py
+++ b/framework/test_result.py
@@ -169,12 +169,20 @@ class Result(object):
         except:
             return ''
 
-    def __set_driver(self, package):
-        if package not in self.internals[self.__dut + 1]:
-            self.internals[self.__dut + 1].append(package)
+    def __set_driver(self, driver):
+        if driver not in self.internals[self.__dut + 1]:
+            driver_current = self.__get_driver()
+            if driver_current:
+                if driver not in driver_current:
+                    self.internals[self.__dut + 1][3] = driver_current + '/' + driver
+            else:
+                self.internals[self.__dut + 1].append(driver)
 
     def __get_driver(self):
-        return self.internals[self.__dut + 1][3]
+        try:
+            return self.internals[self.__dut + 1][3]
+        except:
+            return ''
 
     def __current_targets(self):
         return self.internals[self.__dut + 1]
-- 
2.17.1


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

* Re: [dts] [PATCH V1] framework/test_result: fix saving result failed
  2021-03-31  2:21 [dts] [PATCH V1] framework/test_result: fix saving result failed Haiyang Zhao
@ 2021-03-31  2:35 ` Zhao, HaiyangX
  2021-03-31  7:00   ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: Zhao, HaiyangX @ 2021-03-31  2:35 UTC (permalink / raw)
  To: dts

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



> -----Original Message-----
> From: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Sent: Wednesday, March 31, 2021 10:22
> To: dts@dpdk.org
> Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Subject: [dts][PATCH V1] framework/test_result: fix saving result failed
> 

Tested-by:  Haiyang Zhao <haiyangx.zhao@intel.com>

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

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

* Re: [dts] [PATCH V1] framework/test_result: fix saving result failed
  2021-03-31  2:35 ` Zhao, HaiyangX
@ 2021-03-31  7:00   ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-03-31  7:00 UTC (permalink / raw)
  To: Zhao, HaiyangX, dts



> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Zhao, HaiyangX
> Sent: 2021年3月31日 10:35
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] framework/test_result: fix saving result failed
> 
> 
> 
> > -----Original Message-----
> > From: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> > Sent: Wednesday, March 31, 2021 10:22
> > To: dts@dpdk.org
> > Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> > Subject: [dts][PATCH V1] framework/test_result: fix saving result failed
> >
> 
> Tested-by:  Haiyang Zhao <haiyangx.zhao@intel.com>

Applied

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

end of thread, other threads:[~2021-03-31  7:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31  2:21 [dts] [PATCH V1] framework/test_result: fix saving result failed Haiyang Zhao
2021-03-31  2:35 ` Zhao, HaiyangX
2021-03-31  7:00   ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git