Skip to content

Commit 314e351

Browse files
committed
Module decorators don't seem to work, use setUp() instead
1 parent 430ef07 commit 314e351

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

osgtest/tests/test_160_rsv.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
from osgtest.library import core, service, osgunittest
44

5-
@core.osgrelease(3.4)
5+
66
class TestStartRSV(osgunittest.OSGTestCase):
77

8+
def setUp(self):
9+
if core.osg_release() != '3.4':
10+
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
11+
812
def test_01_config(self):
913
pass
1014

osgtest/tests/test_470_rsv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222
"""
2323

2424

25-
@core.osgrelease(3.4)
2625
class TestRSV(osgunittest.OSGTestCase):
2726

2827
host = socket.getfqdn()
2928

29+
def setUp(self):
30+
if core.osg_release() != '3.4':
31+
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
32+
3033
def start_rsv(self):
3134
core.check_system(('rsv-control', '--on'), 'rsv-control --on')
3235

osgtest/tests/test_830_rsv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
import osgtest.library.osgunittest as osgunittest
55

66

7-
@core.osgrelease(3.4)
87
class TestStopRSV(osgunittest.OSGTestCase):
98

9+
def setUp(self):
10+
if core.osg_release() != '3.4':
11+
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
12+
1013
def test_01_stop_rsv(self):
1114
core.skip_ok_unless_installed('rsv')
1215
self.skip_ok_if(core.state['rsv.started-service'] == False, 'did not start service')

0 commit comments

Comments
 (0)