From 632f840d8a913c425b2d1e8462ca7671d919844c Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Wed, 5 Jul 2023 01:55:07 -0700 Subject: [PATCH] tk: convert to new stand-alone test process (#38575) --- var/spack/repos/builtin/packages/tk/package.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/var/spack/repos/builtin/packages/tk/package.py b/var/spack/repos/builtin/packages/tk/package.py index 316005caa5..07e99a403a 100644 --- a/var/spack/repos/builtin/packages/tk/package.py +++ b/var/spack/repos/builtin/packages/tk/package.py @@ -91,14 +91,17 @@ def symlink_wish(self): with working_dir(self.prefix.bin): symlink("wish{0}".format(self.version.up_to(2)), "wish") - def test(self): - self.run_test(self.spec["tk"].command.path, ["-h"], purpose="test wish command") + def test_tk_help(self): + """run tk help""" + tk = self.spec["tk"].command + tk("-h") + def test_tk_load(self): + """check that tk can be loaded""" test_data_dir = self.test_suite.current_test_data_dir test_file = test_data_dir.join("test.tcl") - self.run_test( - self.spec["tcl"].command.path, test_file, purpose="test that tk can be loaded" - ) + tcl = self.spec["tcl"].command + tcl(test_file) @property def command(self):