Skip to content

[BUG] scs-compliance-check.py command-line option #1124

@mauhau

Description

@mauhau

The utility scs-compliance-check.py has a command-line option for --output which is decribed as follows:

  -o/--output REPORT_PATH: Generate yaml report of compliance check under given path

When a path / directory is given, an error arises:

CRITICAL: [Errno 21] Is a directory: '/data/git/github/scs-standards'
Traceback (most recent call last):
  File "/data/git/github/scs-standards/./Tests/scs-compliance-check.py", line 391, in <module>
    sys.exit(main(sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^
  File "/data/git/github/scs-standards/./Tests/scs-compliance-check.py", line 384, in main
    with open(config.output, 'w', encoding='UTF-8') as fileobj:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: '/data/git/github/scs-standards'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions