summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/cmd/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/cmd/install.py')
-rw-r--r--lib/spack/spack/test/cmd/install.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/spack/spack/test/cmd/install.py b/lib/spack/spack/test/cmd/install.py
index 9c918b8161..dd95967dbe 100644
--- a/lib/spack/spack/test/cmd/install.py
+++ b/lib/spack/spack/test/cmd/install.py
@@ -1187,3 +1187,16 @@ 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
+
+
+@pytest.mark.regression("35337")
+def test_report_filename_for_cdash(install_mockery_mutable_config, mock_fetch):
+ """Test that the temporary file used to write the XML for CDash is not the upload URL"""
+ parser = argparse.ArgumentParser()
+ spack.cmd.install.setup_parser(parser)
+ args = parser.parse_args(
+ ["--cdash-upload-url", "https://blahblah/submit.php?project=debugging", "a"]
+ )
+ _, specs = spack.cmd.install.specs_from_cli(args, {})
+ filename = spack.cmd.install.report_filename(args, specs)
+ assert filename != "https://blahblah/submit.php?project=debugging"