Skip to content

Commit 59d4e90

Browse files
committed
Simplify dependencies output
1 parent 0cf157c commit 59d4e90

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

reframe/frontend/cli.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
ReframeFatalError, ReframeForceExitError, SystemAutodetectionError
2626
)
2727
from reframe.core.exceptions import format_exception
28-
from reframe.core.pipeline import (DEPEND_EXACT, DEPEND_BY_ENV, DEPEND_FULLY)
2928
from reframe.frontend.executors import Runner, generate_testcases
3029
from reframe.frontend.executors.policies import (SerialExecutionPolicy,
3130
AsynchronousExecutionPolicy)
@@ -34,14 +33,6 @@
3433

3534

3635
def format_check(check, detailed):
37-
def dep_type(t):
38-
if t == DEPEND_EXACT:
39-
return 'DEPEND_EXACT'
40-
elif t == DEPEND_BY_ENV:
41-
return 'DEPEND_BY_ENV'
42-
elif t == DEPEND_FULLY:
43-
return 'DEPEND_FULLY'
44-
4536
lines = [' * %s (found in %s)' % (check.name,
4637
inspect.getfile(type(check)))]
4738
flex = 'flexible' if check.num_tasks <= 0 else 'standard'
@@ -54,7 +45,7 @@ def dep_type(t):
5445
f" - modules: {', '.join(check.modules)}",
5546
f" - task allocation: {flex}",
5647
f" - dependencies: "
57-
f"{[(n, dep_type(t), s) for (n, t, s) in check.user_deps()]}",
48+
f"{', '.join([d[0] for d in check.user_deps()])}",
5849
f" - tags: {', '.join(check.tags)}",
5950
f" - maintainers: {', '.join(check.maintainers)}"
6051
]

0 commit comments

Comments
 (0)