| @@ -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)) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris Green
					Chris Green