aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-09-28 10:30:46 +0200
committerTibor Frank <tifrank@cisco.com>2020-09-28 08:32:11 +0000
commit60ab0d6feac3e13cec355dd97f31f7616955431d (patch)
tree987c5ae2cf4e4ebb847c6c03d924e8ca768d26b2 /resources/tools
parent235a6cc9a4936dd2057f8a5e463d132ca4abc1a1 (diff)
PAL: Fix processing of device tests
Change-Id: Ia0417eba8853112f405572189a5ef7bc034c10ce Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit e15746adc0c6b54dc74ea40fc86e794f90ecabf9)
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/input_data_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index e611c2c185..1a8b5bf98d 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -1107,7 +1107,9 @@ class ExecutionChecker(ResultVisitor):
return
if test.status == u"PASS":
- if u"NDRPDR" in tags:
+ if u"DEVICETEST" in tags:
+ test_result[u"type"] = u"DEVICETEST"
+ elif u"NDRPDR" in tags:
test_result[u"type"] = u"NDRPDR"
test_result[u"throughput"], test_result[u"status"] = \
self._get_ndrpdr_throughput(test.message)
@@ -1160,8 +1162,6 @@ class ExecutionChecker(ResultVisitor):
}
except (AttributeError, IndexError, ValueError, TypeError):
test_result[u"status"] = u"FAIL"
- elif u"DEVICETEST" in tags:
- test_result[u"type"] = u"DEVICETEST"
else:
test_result[u"status"] = u"FAIL"
self._data[u"tests"][self._test_id] = test_result