aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_display_resolution.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_display_resolution.cc')
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 3417d38..d55fdbc 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -214,8 +214,16 @@ namespace
false), false);
}
else
+ {
+ std::string ts;
+ const auto & cs(*r.sanitised_dependency().active_dependency_labels_classifier());
+ if (cs.includes_buildish && ! cs.includes_non_post_runish && ! cs.includes_post &&
+ ! cs.includes_non_test_buildish)
+ ts = " (test)";
+
return annotate(r.sanitised_dependency().spec().if_package()->annotations_key(),
- std::make_pair(stringify(r.from_id()->name()), false), false);
+ std::make_pair(stringify(r.from_id()->name()) + ts, false), false);
+ }
}
}