Update stand-alone tests to use test stage work directory (#24112)

This commit is contained in:
Tamara Dahlgren 2021-07-14 13:33:50 -07:00 committed by GitHub
parent 8126a13211
commit 1c07dd1adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,8 +43,13 @@ def edit(self):
@run_after('install') @run_after('install')
def cache_test_sources(self): def cache_test_sources(self):
"""Save off the pdb sources for stand-alone testing."""
self.cache_extra_test_sources('pdb') self.cache_extra_test_sources('pdb')
def test(self): def test(self):
pdb_path = join_path(self.install_test_root, 'pdb') """Perform stand-alone/smoke test on installed package."""
self.run_test('mkdssp', options=['1ALK.pdb', '1alk.dssp'], work_dir=pdb_path) pdb_path = join_path(self.test_suite.current_test_cache_dir, 'pdb')
self.run_test('mkdssp', options=['1ALK.pdb', '1alk.dssp'],
purpose='test: calculating structure for example',
installed=True,
work_dir=pdb_path)