diff --git a/lib/spack/spack/package_base.py b/lib/spack/spack/package_base.py index be0721e667..736e95d63e 100644 --- a/lib/spack/spack/package_base.py +++ b/lib/spack/spack/package_base.py @@ -2447,12 +2447,12 @@ def run_test_callbacks(builder, method_names, callback_type="install"): try: fn = getattr(builder, name) - msg = ("RUN-TESTS: {0}-time tests [{1}]".format(callback_type, name),) + msg = "RUN-TESTS: {0}-time tests [{1}]".format(callback_type, name) print_test_message(logger, msg, True) fn() except AttributeError as e: - msg = ("RUN-TESTS: method not implemented [{0}]".format(name),) + msg = "RUN-TESTS: method not implemented [{0}]".format(name) print_test_message(logger, msg, True) builder.pkg.test_failures.append((e, msg)) diff --git a/lib/spack/spack/test/cmd/install.py b/lib/spack/spack/test/cmd/install.py index d1993be777..6d3d196f10 100644 --- a/lib/spack/spack/test/cmd/install.py +++ b/lib/spack/spack/test/cmd/install.py @@ -1178,3 +1178,11 @@ def install_use_buildcache(opt): # Alternative to --cache-only (always) or --no-cache (never) for opt in ["auto", "only", "never"]: install_use_buildcache(opt) + + +@pytest.mark.regression("34006") +@pytest.mark.disable_clean_stage_check +def test_padded_install_runtests_root(install_mockery_mutable_config, mock_fetch): + spack.config.set("config:install_tree:padded_length", 255) + output = install("--test=root", "--no-cache", "test-build-callbacks", fail_on_error=False) + assert output.count("method not implemented") == 1