Skip to content
Permalink
Browse files

graphstrategy: fix error message about multiple root states

root_states already contains all states without dependencies as
strings. Joining only the first element of each string results in the
first character of each state being printed. Fix this by joining
root_states directly without a list comprehension.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
  • Loading branch information
Bastian-Krause authored and jluebbe committed Oct 30, 2019
1 parent f37f167 commit 3b48d7c9765d82d4f1d2cf8d70e05149fae59309
Showing with 1 addition and 1 deletion.
  1. +1 −1 labgrid/strategy/graphstrategy.py
@@ -81,7 +81,7 @@ def __attrs_post_init__(self):
if len(root_states) > 1:
raise InvalidGraphStrategyError(
'Only one root state supported. Defined root states: {}'.format( # NOQA
', '.join([i[0] for i in root_states]),
', '.join(root_states),
)
)

0 comments on commit 3b48d7c

Please sign in to comment.
You can’t perform that action at this time.