aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/actions/test
diff options
context:
space:
mode:
authorRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-06-26 09:58:12 +0200
committerNeil Williams <neil.williams@linaro.org>2018-06-27 08:37:08 +0000
commitc0f8009914a8f92a99c0b8790cacdb883007d193 (patch)
tree228b641b2142cec8aa73d23d1ce02d4aa3c15abd /lava_dispatcher/actions/test
parent28049de48ddab812d6510c7f52f0e744a9772f6c (diff)
reduce is part of functools in python3
Change-Id: I65533b7a7cb43cb2b8388258abba32cc860755ab
Diffstat (limited to 'lava_dispatcher/actions/test')
-rw-r--r--lava_dispatcher/actions/test/shell.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lava_dispatcher/actions/test/shell.py b/lava_dispatcher/actions/test/shell.py
index bf3a9b54f..4d0bf2431 100644
--- a/lava_dispatcher/actions/test/shell.py
+++ b/lava_dispatcher/actions/test/shell.py
@@ -48,7 +48,6 @@ from lava_common.constants import (
DEFAULT_V1_PATTERN,
DEFAULT_V1_FIXUP,
)
-from functools import reduce
# pylint: disable=too-many-branches,too-many-statements,too-many-instance-attributes,logging-not-lazy
@@ -109,7 +108,7 @@ class PatternFixup(object):
self.fixup = DEFAULT_V1_FIXUP
if isinstance(testdef, dict) and 'metadata' in testdef:
self.testdef = testdef
- self.name = "%d_%s" % (count, reduce(dict.get, ['metadata', 'name'], testdef))
+ self.name = "%d_%s" % (count, testdef["metadata"].get("name"))
else:
self.testdef = {}
self.name = None