perf test shell: prevent temporary editor files from being considered test scripts
PATCH v2 4/4 perf test shell: prevent temporary editor files from being considered test scripts
Allows a perf shell test developer to concurrently edit and run their test scripts, avoiding perf test attempts to execute their editor temporary files, such as seen here:
$ sudo taskset -c 0 ./perf test -vvvvvvvv -F 63 63: 0VIM 8.0 : --- start --- sh: 1: ./tests/shell/.record+probe_libc_inet_pton.sh.swp: Permission denied ---- end ---- 0VIM 8.0: FAILED!
Signed-off-by Kim Phillips <[email protected]>
---
v2: new this series
tools/perf/tests/builtin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/builtin-test.c +1 -1
@@ -422,7 +422,7 @@ static const char *shell_test__description(char *description, size_t size,#define for_each_shell_test (dir, base, ent) \ while ((ent = readdir(dir)) != NULL) \ - if (!is_directory(base, ent)) + if (!is_directory(base, ent) && ent->d_name[0] != '.')static const char *shell_tests__dir (char *path,size_t size) {
Signature · 1 line
2.17.1
tip-bot for Kim Phillips
merge bot[tip:perf/urgent] perf test shell: Prevent temporary editor files from being considered test scripts
perf test shell: Prevent temporary editor files from being considered test scripts
Commit-ID: db8fec583f250557ddd6def1505a6c466c9747aa Gitweb: https://git.kernel.org/tip/db8fec583f250557ddd6def1505a6c466c9747aa Author: Kim Phillips <[email protected]> AuthorDate: Fri, 29 Jun 2018 12:46:58 -0500 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 11 Jul 2018 10:01:51 -0300
perf test shell: Prevent temporary editor files from being considered test scripts
Allows a perf shell test developer to concurrently edit and run their test scripts, avoiding perf test attempts to execute their editor temporary files, such as seen here:
$ sudo taskset -c 0 ./perf test -vvvvvvvv -F 63 63: 0VIM 8.0 : --- start --- sh: 1: ./tests/shell/.record+probe_libc_inet_pton.sh.swp: Permission denied ---- end ---- 0VIM 8.0: FAILED!
Signed-off-by Kim Phillips <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Hendrik Brueckner <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Michael Petlan <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Sandipan Das <[email protected]>
Cc Thomas Richter <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/builtin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/builtin-test.c +1 -1
@@ -422,7 +422,7 @@ static const char *shell_test__description(char *description, size_t size,#define for_each_shell_test (dir, base, ent) \ while ((ent = readdir(dir)) != NULL) \ - if (!is_directory(base, ent)) + if (!is_directory(base, ent) && ent->d_name[0] != '.')static const char *shell_tests__dir (char *path,size_t size) {