]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make the mac_portacl testcases work / more robust
authorEnji Cooper <ngie@FreeBSD.org>
Mon, 21 Dec 2015 21:15:23 +0000 (21:15 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Mon, 21 Dec 2015 21:15:23 +0000 (21:15 +0000)
commit1dc3084804097a8ee0d80dec7cc40ef5cd98b330
treefd9172f4effe4d2c043ccf907d42a056ad4de7d2
parent23df2d677ffb3a36999392f2ddb4914e367e3f84
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"

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
tools/regression/mac/mac_portacl/misc.sh
tools/regression/mac/mac_portacl/nobody.t
tools/regression/mac/mac_portacl/root.t