Skip to content

Spurious test errors #41306

@haampie

Description

@haampie

Steps to reproduce

spack repo add: error: argument --scope: invalid choice: 'site' choose from:
    defaults

in

    def test_create_add_list_remove(mutable_config, tmpdir):
        # Create a new repository and check that the expected
        # files are there
        repo("create", str(tmpdir), "mockrepo")
        assert os.path.exists(os.path.join(str(tmpdir), "repo.yaml"))
    
        # Add the new repository and check it appears in the list output
>       repo("add", "--scope=site", str(tmpdir))

likely triggered by a particular order of running tests.

Error message

No response

Information on your system

.

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions