]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r292569:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 28 Dec 2015 23:32:27 +0000 (23:32 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 28 Dec 2015 23:32:27 +0000 (23:32 +0000)
commit7294ae2ed6a204cea8f45f627a40fe521aeaee87
tree49fc93151bac528920df304f940b261e66e82779
parent04947bbebb06153ade2efbaabfd0a4545d6947ac
MFC r292569:

Make the mac_portacl testcases work / more robust

- A trap(1) call has been added to the test scripts to better
  ensure that the tests do a better job at trying to restore the
  test host state at the end of the tests (if the test was
  interrupted before it would leave the system in an odd state,
  potentially making the test results for subsequent runs
  non-deterministic).
- Add root user checks
- Fix nc(1) usage:
  -- -o is deprecated
  -- Using `-w 10` will make the call timeout after 10 seconds so it
     doesn't block indefinitely
- Use local variables
- Be more terse in the error messages
- Parameterize out "127.0.0.1"

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@292845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/regression/mac/mac_portacl/misc.sh
tools/regression/mac/mac_portacl/nobody.t
tools/regression/mac/mac_portacl/root.t