mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Arch does not have the alternatives directory
This commit is contained in:
parent
6b5c65eafa
commit
291a5695d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user