Arch does not have the alternatives directory

This commit is contained in:
Justin Anderson 2016-03-24 16:12:01 -06:00
parent 6b5c65eafa
commit 291a5695d3

View File

@ -5,15 +5,22 @@ Integration tests for the alternatives state module
# Import Python libs
from __future__ import absolute_import
import os
# Import Salt Testing libs
from salttesting import skipIf
from salttesting.helpers import destructiveTest, ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import integration
NO_ALTERNATIVES = False
if not os.path.exists('/etc/alternatives')
NO_ALTERNATIVES = True
@skipIf(NO_ALTERNATIVES, '/etc/alternatives does not exist on the system')
class AlterantivesStateTest(integration.ModuleCase,
integration.SaltReturnAssertsMixIn):
@destructiveTest