[PATCH v10 4/5] Implement testing framework for pidns

Dmitry V. Levin ldv at altlinux.org
Thu Aug 20 17:41:13 UTC 2020


On Wed, Aug 19, 2020 at 08:16:36PM +0200, Ákos Uzonyi wrote:
[...]
> +test_pidns()
> +{
> +	check_prog unshare
> +
> +	test_pidns_run_strace "$@"
> +
> +	# test PID translation when /proc is mounted from an other namespace
> +	STRACE="unshare -Urpf $STRACE"
> +	test_pidns_run_strace "$@"
> +}

Apparently, a check for simple presence of unshare is not enough,
there are systems where unshare doesn't work as expected, see e.g.
https://build.opensuse.org/package/live_build_log/home:ldv_alt/strace/RHEL_7/x86_6

I suggest to framework_skip_ if "unshare -Urpf true" doesn't exit
successfully.


-- 
ldv


More information about the Strace-devel mailing list