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

Ákos Uzonyi uzonyi.akos at gmail.com
Thu Aug 20 17:48:57 UTC 2020


On Thu, 20 Aug 2020 at 19:41, Dmitry V. Levin <ldv at altlinux.org> wrote:
> 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.

Thanks, I'll add this check.


More information about the Strace-devel mailing list