diff --git a/tools/perf/tests/shell/data_type_profiling.sh b/tools/perf/tests/shell/data_type_profiling.sh index 3ef72a10850d..2a7f8f7c42d0 100755 --- a/tools/perf/tests/shell/data_type_profiling.sh +++ b/tools/perf/tests/shell/data_type_profiling.sh @@ -4,11 +4,6 @@ set -e -if ! perf test --list-workloads | grep -qw code_with_type ; then - echo "Skip: code_with_type workload not built in 'perf test'" - exit 2 -fi - # The logic below follows the same line as the annotate test, but looks for a # data type profiling manifestation @@ -42,6 +37,11 @@ test_basic_annotate() { case "x${runtime}" in "xRust") + if ! perf check feature -q rust + then + echo "Skip: code_with_type workload not built in 'perf test'" + return + fi index=0 ;; "xC")