tests: Improve afstest_UnlinkTestConfig cleanup
authorMarc Dionne <marc.dionne@your-file-system.com>
Wed, 3 Apr 2013 20:09:53 +0000 (16:09 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 28 May 2013 22:57:31 +0000 (15:57 -0700)
commit12e2d47a1c318d13e43c19d0afd1cd3401e03a8d
tree27923674a05bde9f4396fbfb2fa56971dc33ee56
parent61caad06b7a95c27eae7aca0536bcffe61d3e31a
tests: Improve afstest_UnlinkTestConfig cleanup

Make afstest_UnlinkTestConfig clean up and remove the specified
directory regardless of which files are present.  This means
the function no longer has to track the current state of which
files may be present as tests are added and modified.

A sanity check is added to prevent damage in case the function is
called for an inappropriate directory.

As before, no cleaning is done if the test is run outside of a
"make check".

Change-Id: Idd092040496aaa2566c8693496fefd7d6f247565
Reviewed-on: http://gerrit.openafs.org/9703
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
tests/common/config.c