diff --git a/var/spack/repos/builtin/packages/biobambam2/package.py b/var/spack/repos/builtin/packages/biobambam2/package.py index bafad81657..84ede800b0 100644 --- a/var/spack/repos/builtin/packages/biobambam2/package.py +++ b/var/spack/repos/builtin/packages/biobambam2/package.py @@ -40,7 +40,10 @@ def cache_test_sources(self): self._fix_shortsort() def test(self): - test_dir = join_path(self.install_test_root, self.test_src_dir) + """Perform stand-alone/smoke test on installed package.""" + test_dir = join_path(self.test_suite.current_test_cache_dir, + self.test_src_dir) self.run_test('sh', ['testshortsort.sh'], expected='Alignments sorted by coordinate.', + purpose='test: checking alignments', work_dir=test_dir)