Skip to content

The file tests/t_file_check.py is not packaged #309

@flo-renaud

Description

@flo-renaud

The file tests/t_file_check.py is missing from the tar mod_auth_gssapi-1.6.5.tar.gz

It should be added in tests/Makefile.am in the EXTRA_DIST variable: https://github.com/gssapi/mod_auth_gssapi/blob/master/tests/Makefile.am#L3-L28

Without that file, launching the tests with ./tests/magtests.py fails with a FileNotFoundError:

+ ./tests/magtests.py
SPNEGO: SUCCESS
SPNEGO Proxy Auth: SUCCESS
SPNEGO No Auth: SUCCESS
SPNEGO Rewrite: SUCCESS
SPNEGO Negotiate Once: SUCCESS
HOSTNAME ACCEPTOR: SUCCESS
BAD ACCEPTOR: SUCCESS
LOCALNAME(SPNEGO): SUCCESS
LOCALNAME(KRB5): SUCCESS
Required Name Attr: SUCCESS
BASIC-AUTH: SUCCESS
BASIC-AUTH Two Users: SUCCESS
BASIC Fail Second User: SUCCESS
BASIC Proxy Auth: SUCCESS
NO Negotiate: SUCCESS
MECH-NAME: SUCCESS
Traceback (most recent call last):
  File "/var/str/source/./tests/magtests.py", line 902, in <module>
    errs += test_file_check(testdir, testenv, logfile)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/str/source/./tests/magtests.py", line 822, in test_file_check
    filec = subprocess.Popen(["tests/t_file_check.py"],
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.12/subprocess.py", line 1953, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'tests/t_file_check.py'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions