diff --git a/lib/spack/spack/test/cmd/mirror.py b/lib/spack/spack/test/cmd/mirror.py index 6669168bbfa..3918849b0bc 100644 --- a/lib/spack/spack/test/cmd/mirror.py +++ b/lib/spack/spack/test/cmd/mirror.py @@ -583,6 +583,14 @@ def test_mirror_add_filters(mutable_config, tmpdir): mirror("add", "--exclude-specs", "foo", "example", "http://example.com") assert spack.config.get("mirrors:example") == {"url": "http://example.com", "exclude": ["foo"]} mirror("set", "--include-specs", "+shared", "example") - assert spack.config.get("mirrors:example") == {"url": "http://example.com", "exclude": ["foo"], "include": ["+shared"]} - mirror("set", "--include-file", include_path,"--exclude-file", exclude_path, "example") - assert spack.config.get("mirrors:example") == {"url": "http://example.com", "exclude": ["mpich@3.0.1:3.0.2", "mpich@1.0"], "include": ["build_type=Debug", "gcc-runtime"]} + assert spack.config.get("mirrors:example") == { + "url": "http://example.com", + "exclude": ["foo"], + "include": ["+shared"], + } + mirror("set", "--include-file", include_path, "--exclude-file", exclude_path, "example") + assert spack.config.get("mirrors:example") == { + "url": "http://example.com", + "exclude": ["mpich@3.0.1:3.0.2", "mpich@1.0"], + "include": ["build_type=Debug", "gcc-runtime"], + }