[Bug 232182] sysutils/py-pyznap: Add tests to the port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 29 16:46:03 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232182

--- Comment #5 from Dries Michiels <driesm.michiels at gmail.com> ---
I did some further research and its like Mateusz said; in a Poudriere
enviroment the other tests fail too. ZFS isn't available in a Poudriere jail.
When I execute "poudriere testport -i -o sysutils/py-pyznap -j head -p head"
and then try to exectute a ZFS command in interactive mode it sais this every
time:

root at head-head:~ # zfs
internal error: failed to initialize ZFS library

root at head-default:~ # zpool
internal error: failed to initialize ZFS library


Should I create a PR for the above issue?

When the ZFS/zpool command isn't available in a Poudriere jail, tests that use
the ZFS/ZPOOL command will have a hard time passing.  The tests do pass when
not in a Poudriere jail, simply on the host with root privileges. Then all the
standard ZFS tests pass.

Are there any examples in the ports tree where tests are skipped based on env
variables? I would like to check if executed from poudriere jail or host if
thats possible?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list