[DTrace-devel] [External] : Re: [PATCH v5 11/11] test: Add a test for the PCP ManagedDTraceScript interface
Alan Maguire
almagui at kernel.org
Tue Oct 20 15:49:03 UTC 2026
>
> This should either add a dependency on python and pcp for the testsuite,
> or there should be a .x file to exclude this test when python and pcp
> are not available. As it is now, not having PCP on the system will
> cause the test to fail.
The earlier python tests introduce a test.x for python availability, so
that should cover this test too. There is a test for pcp availability
below, see:
> +if ! "$DTRACE_PYTHON" -c 'import dtrace, cpmapi, cpmda, pcp.pmapi, pcp.pmda' \
> + >/dev/null 2>&1; then
> + echo "DTrace or PCP Python bindings are unavailable"
> + exit 2
> +fi
> +
...but the exit 2 triggers a fail IIRC; something like the attached should
work I think..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-test-Add-a-test-for-the-PCP-ManagedDTraceScript-inte.patch
Type: text/x-patch
Size: 3600 bytes
Desc: not available
URL: <http://oss.oracle.com/pipermail/dtrace-devel/attachments/20261020/d41c604f/attachment.bin>
More information about the DTrace-devel
mailing list