File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ if ! check_kprobes_available; then
22
22
exit 0
23
23
fi
24
24
25
+ # Check for presence of dwarf
26
+ $CMD_PERF check feature -q dwarf
27
+ [ $? -ne 0 ] && HINT_FAIL=" Some of the tests need DWARF to run"
25
28
26
29
# ## missing argument
27
30
75
78
76
79
77
80
# print overall results
78
- print_overall_results " $TEST_RESULT "
81
+ print_overall_results " $TEST_RESULT " $HINT_FAIL
79
82
exit $?
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ if ! check_kprobes_available; then
23
23
exit 0
24
24
fi
25
25
26
+ # Check for presence of dwarf
27
+ $CMD_PERF check feature -q dwarf
28
+ [ $? -ne 0 ] && HINT_FAIL=" Some of the tests need DWARF to run"
26
29
27
30
# ## acceptable --line descriptions
28
31
51
54
52
55
53
56
# print overall results
54
- print_overall_results " $TEST_RESULT "
57
+ print_overall_results " $TEST_RESULT " $HINT_FAIL
55
58
exit $?
Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ print_results()
46
46
print_overall_results ()
47
47
{
48
48
RETVAL=" $1 " ; shift
49
+ TASK_COMMENT=" $* "
50
+ test -n " $TASK_COMMENT " && TASK_COMMENT=" :: $TASK_COMMENT "
51
+
49
52
if [ $RETVAL -eq 0 ]; then
50
53
_echo " $MALLPASS ## [ PASS ] ##$MEND $TEST_NAME :: $THIS_TEST_NAME SUMMARY"
51
54
else
52
- _echo " $MALLFAIL ## [ FAIL ] ##$MEND $TEST_NAME :: $THIS_TEST_NAME SUMMARY :: $RETVAL failures found"
55
+ _echo " $MALLFAIL ## [ FAIL ] ##$MEND $TEST_NAME :: $THIS_TEST_NAME SUMMARY :: $RETVAL failures found $TASK_COMMENT "
53
56
fi
54
57
return $RETVAL
55
58
}
You can’t perform that action at this time.
0 commit comments