diff options
Diffstat (limited to 'tools/perf/tests/tests-scripts.c')
| -rw-r--r-- | tools/perf/tests/tests-scripts.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/tests/tests-scripts.c b/tools/perf/tests/tests-scripts.c index ed114b044293..cf3ae0c1d871 100644 --- a/tools/perf/tests/tests-scripts.c +++ b/tools/perf/tests/tests-scripts.c @@ -175,6 +175,7 @@ static void append_script(int dir_fd, const char *name, char *desc,  	struct test_suite *test_suite, **result_tmp;  	struct test_case *tests;  	size_t len; +	char *exclusive;  	snprintf(link, sizeof(link), "/proc/%d/fd/%d", getpid(), dir_fd);  	len = readlink(link, filename, sizeof(filename)); @@ -191,9 +192,13 @@ static void append_script(int dir_fd, const char *name, char *desc,  		return;  	}  	tests[0].name = strdup_check(name); +	exclusive = strstr(desc, " (exclusive)"); +	if (exclusive != NULL) { +		tests[0].exclusive = true; +		exclusive[0] = '\0'; +	}  	tests[0].desc = strdup_check(desc);  	tests[0].run_case = shell_test__run; -  	test_suite = zalloc(sizeof(*test_suite));  	if (!test_suite) {  		pr_err("Out of memory while building script test suite list\n");  | 
