Skip to content

test fails: missing mcookie #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mtelka opened this issue Dec 15, 2022 · 1 comment
Open

test fails: missing mcookie #257

mtelka opened this issue Dec 15, 2022 · 1 comment

Comments

@mtelka
Copy link
Contributor

mtelka commented Dec 15, 2022

I tested version 0.32 and tests failed:

py39 run-test: commands[0] | $(BLD_DIR)/.tox/py39/bin/python -W all runtests.py
Traceback (most recent call last):
  File "$(BLD_DIR)/runtests.py", line 134, in <module>
    runtests()
  File "$(BLD_DIR)/runtests.py", line 91, in runtests
    cookie = subprocess.check_output('mcookie').strip()
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mcookie'
@mtelka
Copy link
Contributor Author

mtelka commented Feb 8, 2023

The problem is that mcookie is typically not available on non-Linux platforms.

As a workaround one could use this script as mcookie:

#!/bin/sh

dd if=/dev/urandom of=/dev/stdout bs=512 count=1 2>/dev/null | md5sum | awk '{print $1}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant