svn commit: r307190 - head/contrib/netbsd-tests/fs/tmpfs
Ngie Cooper (yaneurabeya)
yaneurabeya at gmail.com
Thu Oct 13 07:29:07 UTC 2016
> On Oct 13, 2016, at 00:20, Julio Merino <julio at meroh.net> wrote:
>
> On Thu, Oct 13, 2016 at 3:02 AM, Ngie Cooper <ngie at freebsd.org> wrote:
> Author: ngie
> Date: Thu Oct 13 07:02:54 2016
> New Revision: 307190
> URL: https://svnweb.freebsd.org/changeset/base/307190
>
> Log:
> Skip :uchg on FreeBSD
>
> Unfortunately removing files with uchg set always succeeds with root on
> FreeBSD. Unfortunately running the test as an unprivileged user isn't doable
> because mounting tmpfs requires root
>
> PR: 212861
> Sponsored by: Dell EMC Isilon
>
> Modified:
> head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh
>
> Modified: head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh
> ==============================================================================
> --- head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh Thu Oct 13 06:56:23 2016 (r307189)
> +++ head/contrib/netbsd-tests/fs/tmpfs/t_remove.sh Thu Oct 13 07:02:54 2016 (r307190)
> @@ -53,6 +53,10 @@ uchg_head() {
> atf_set "require.user" "root"
> }
> uchg_body() {
> + # Begin FreeBSD
> + atf_skip "this fails on FreeBSD with root - bug 212861"
> + # End FreeBSD
>
> This is a bad way of disabling a test due to a known bug because, when the bug is resolved, the test won't notice. You should be using the "expected failures" functionality if possible, and based on the change description, I think you can do this here easily. Try:
>
> atf_expect_fail "FreeBSD bug 213861 blah blah"
>
> right before the line that triggers the test failure.
The problem is that this leaves tmpfs mounts lying around, which atf won’t cleanup. Otherwise, I would totally agree with you.
Thanks,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20161013/6925f160/attachment.sig>
More information about the svn-src-all
mailing list