Skip to content

Commit 703fb68

Browse files
Merge pull request #109 from brianhlin/master
Ensure cert-related global vars are set before skipping
2 parents 4fbbc57 + ea0ac20 commit 703fb68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osgtest/tests/special_certs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ def test_01_install_ca(self):
1414
core.state['certs.ca_created'] = True
1515

1616
def test_02_install_host_cert(self):
17-
self.skip_ok_unless(os.path.exists(core.config['certs.test-ca']), "OSG Test CA doesn't exist")
1817
core.state['certs.hostcert_created'] = False
1918
grid_dir = '/etc/grid-security/'
2019
core.config['certs.hostcert'] = os.path.join(grid_dir, 'hostcert.pem')
2120
core.config['certs.hostkey'] = os.path.join(grid_dir, 'hostkey.pem')
2221

22+
self.skip_ok_unless(os.path.exists(core.config['certs.test-ca']), "OSG Test CA doesn't exist")
23+
2324
if core.options.hostcert and not os.path.exists(core.config['certs.hostcert']):
2425
test_ca = CA.load(core.config['certs.test-ca'])
2526
test_ca.hostcert()

0 commit comments

Comments
 (0)