Re: [PATCH] perf test: Check python path on attr test

From: Jiri Olsa
Date: Mon Dec 17 2012 - 08:44:20 EST


On Mon, Dec 17, 2012 at 04:25:01PM +0900, Namhyung Kim wrote:
> From: Namhyung Kim <namhyung.kim@xxxxxxx>
>
> Current perf test code tries to execute python version 2 in order to
> test attributes on perf_event_open syscall. However it's not default
> python version anymore a system can have python v3 only or v2 with a
> different name (e.g. python2). So if there's no such python
> interpreter with the name 'python', the test would fail like this
> (yes, it's happened on my new archlinux laptop :).
>
> 13: struct perf_event_attr setup :sh: python: command not found
> FAILED!
>
> As we can pass name of the python interpreter on make, use it for
> the attr test also.
>
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/