From e1bd3ae4db19cc0fd92587f4ade697d06ee71a05 Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Tue, 8 Jun 2021 00:30:21 -0700 Subject: [PATCH] biobambam2: update stand-alone tests to use test stage work directory (#24111) --- var/spack/repos/builtin/packages/biobambam2/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)