projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6432b9
)
perf test shell: Prevent temporary editor files from being considered test scripts
author
Kim Phillips
<
[email protected]
>
Fri, 29 Jun 2018 17:46:58 +0000
(12:46 -0500)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 11 Jul 2018 13:01:51 +0000
(10:01 -0300)
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]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/tests/builtin-test.c
patch
|
blob
|
history
diff --git
a/tools/perf/tests/builtin-test.c
b/tools/perf/tests/builtin-test.c
index 2bde505e2e7ea0c2b1157e2734be89d291351e66..dd850a26d579914fde328d16cbb3ade2d3a8b992 100644
(file)
--- a/
tools/perf/tests/builtin-test.c
+++ b/
tools/perf/tests/builtin-test.c
@@
-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)
{