Skip to content

Commit b2bf666

Browse files
captain5050acmel
authored andcommitted
perf test: Print if shell directory isn't present
If the shell test directory isn't present the exit code will be 255 but with no error messages printed. Add an error message. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 44d462a commit b2bf666

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/perf/tests/builtin-test.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,11 @@ static int run_shell_tests(int argc, const char *argv[], int i, int width)
543543
return -1;
544544

545545
dir = opendir(st.dir);
546-
if (!dir)
546+
if (!dir) {
547+
pr_err("failed to open shell test directory: %s\n",
548+
st.dir);
547549
return -1;
550+
}
548551

549552
for_each_shell_test(dir, st.dir, ent) {
550553
int curr = i++;

0 commit comments

Comments
 (0)