openrasmol: convert to new stand-alone test process (#38630)

This commit is contained in:
Tamara Dahlgren 2023-07-01 10:55:20 -07:00 committed by GitHub
parent 43996e84c3
commit 4aed051b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,11 +58,13 @@ def install(self, spec, prefix):
bash = which("bash")
bash("./rasmol_install.sh", "--prefix={0}".format(prefix))
def test(self):
testdir = self.test_suite.current_test_data_dir
opts = []
opts.append("-insecure")
opts.append("-script")
opts.append(join_path(testdir, "test.rsc"))
opts.append(join_path(self.prefix.sample, "1crn.pdb"))
self.run_test("rasmol", options=opts)
def test_rasmol(self):
"""run rasmol on sample"""
opts = [
"-insecure",
"-script",
join_path(self.test_suite.current_test_data_dir, "test.rsc"),
join_path(self.prefix.sample, "1crn.pdb"),
]
rasmol = which(self.prefix.bin.rasmol)
rasmol(*opts)