[apparmor] [patch] tests: warn about xpass/xfail marked tests
Tyler Hicks
tyhicks at canonical.com
Thu Oct 9 15:58:09 UTC 2014
On 2014-10-09 01:26:46, Steve Beattie wrote:
> With the two recent unix socket test patches to mark dgram tests as
> failing but expected to pass, I realized that there's no indication
> in the output that there are current expected failures (except for
> the single corefile test expected failure)[0]. This patch attempts
> to remedy that by emitting the x-type plus the test description for
> each test that is marked as such. I've set it to always emit these
> results; I could be talked into only doing it when VERBOSE is set, but I
> think the constant visible reminder is probably for the best.
>
> [0] The test infrastructure does give an alert if there is a test that
> has been marked xpass or xfail but has started behaving correctly.
>
> Signed-off-by: Steve Beattie <steve at nxnw.org>
This seems like a good idea to me.
Acked-by: Tyler Hicks <tyhicks at canonical.com>
Tyler
> ---
> tests/regression/apparmor/prologue.inc | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> Index: b/tests/regression/apparmor/prologue.inc
> ===================================================================
> --- a/tests/regression/apparmor/prologue.inc
> +++ b/tests/regression/apparmor/prologue.inc
> @@ -250,7 +250,10 @@ checktestfg()
> fi
> fi
>
> - if [ -n "$VERBOSE" ]; then
> + # warn about expected failures
> + if [ -n "${_known}" ] ; then
> + echo "x${_pfmode}: ${_testdesc}"
> + elif [ -n "$VERBOSE" ]; then
> echo "ok: ${_testdesc}"
> fi
> }
>
> --
> Steve Beattie
> <sbeattie at ubuntu.com>
> http://NxNW.org/~steve/
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141009/6a24e170/attachment.pgp>
More information about the AppArmor
mailing list