Avoid starting autofs for tests that require autofs to be disabled
Avoid starting autofs for tests that require autofs to be disabled

The current logic in setup_environment() will always restart the
autofs service, and will then stop it if the test specifies
cvmfs_test_autofs_on_startup=false.  This causes a test failure if the
autofs service cannot be started (e.g. because the service has been
deliberately masked), even though autofs is not required for the test
to run.

Fix by attempting to restart autofs only if autofs is required by the
test being performed.

Signed-off-by: Michael Brown <2a36638259b3302298d1519e970c48ecd5dbd43e@fensystems.co.uk>

cvmfs/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs