Skip to content

Commit 2a400ee

Browse files
committed
perf test code_with_type.sh: Skip test if rust wasn't available at build time
$ perf test 'perf data type profiling tests' 83: perf data type profiling tests : Skip $ perf test -vv 'perf data type profiling tests' 83: perf data type profiling tests: --- start --- test child forked, pid 977213 Skip: code_with_type workload not built in 'perf test' ---- end(-2) ---- 83: perf data type profiling tests : Skip $ Cc: Dmitrii Dolgov <9erthalion6@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 1d3ffe6 commit 2a400ee

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/perf/tests/shell/data_type_profiling.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
set -e
66

7+
if ! perf test --list-workloads | grep -qw code_with_type ; then
8+
echo "Skip: code_with_type workload not built in 'perf test'"
9+
exit 2
10+
fi
11+
712
# The logic below follows the same line as the annotate test, but looks for a
813
# data type profiling manifestation
914

0 commit comments

Comments
 (0)