Skip to content

Commit 243bd07

Browse files
author
efajardo
committed
Changed the cvmfs tests to be output more only for el6
1 parent 12b7c16 commit 243bd07

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

osgtest/tests/test_18_cvmfs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ def test_02_start_cvmfs(self):
7272
if core.state['cvmfs.version'] < ('2', '1'):
7373
command = ('service', 'cvmfs', 'restartautofs')
7474
else:
75-
command = ('bash','-x', '/etc/init.d/autofs', 'restart')
76-
#command = ('service', 'autofs', 'restart')
75+
if core.el_release() >= 7:
76+
command = ('service', 'autofs', 'restart')
77+
else:
78+
command = ('bash','-x', '/etc/init.d/autofs', 'restart')
79+
#command = ('service', 'autofs', 'restart')
7780
stdout, stderr, fail = core.check_system(command, 'Start cvmfs server')
7881
self.assert_(stdout.find('FAILED') == -1, fail)
7982
core.state['cvmfs.started-server'] = True

0 commit comments

Comments
 (0)