[ovirt-devel] failed to run test case

Nir Soffer nsoffer at redhat.com
Tue Aug 15 10:03:10 UTC 2017


On Tue, Aug 15, 2017 at 12:26 PM pengyixiang <yxpengi386 at 163.com> wrote:

> hello, everyone!
>       I run command 'make check' in vdsm/, but it seems failed, log as
> follows:
>
> writing RSA key
> Signature ok
> subject=/C=US/ST=Bar/L=Foo/O=Dis/CN=::1
> Getting Private key
> Generating RSA private key, 2048 bit long modulus
> ......................................+++
> ....+++
> e is 65537 (0x10001)
> writing RSA key
> Signature ok
> subject=/C=US/ST=Foo/L=Bar/O=Dis/CN=::1
> Getting Private key
> make[2]: Leaving directory '/root/install_script/py/vdsm/tests'
> make[1]: Leaving directory '/root/install_script/py/vdsm/tests'
> make[1]: Entering directory '/root/install_script/py/vdsm'
> Makefile:1002: warning: overriding recipe for target 'check-recursive'
> Makefile:525: warning: ignoring old recipe for target 'check-recursive'
> make[1]: Nothing to be done for 'all-am'.
> make[1]: Leaving directory '/root/install_script/py/vdsm'
> out=`tox --version`; \
> if [ $? -ne 0 ]; then \
>     echo "Error: cannot run tox, please install tox \
>     2.5.0 or later"; \
>     exit 1; \
> fi; \
> version=`echo $out | cut -d' ' -f1`; \
> if build-aux/vercmp $version 2.5.0; then \
>     echo "Error: tox is too old, please install tox \
>     2.5.0 or later"; \
>     exit 1; \
> fi
> tox -e imports
> ERROR: invocation failed (errno 2), args:
> ['/root/install_script/py/vdsm/.tox/imports/bin/pip', 'freeze'], cwd:
> /root/install_script/py/vdsm
> Traceback (most recent call last):
>   File "/usr/bin/tox", line 11, in <module>
>     load_entry_point('tox==2.5.0', 'console_scripts', 'tox')()
>   File "/usr/lib/python3/dist-packages/tox/session.py", line 39, in main
>     retcode = Session(config).runcommand()
>   File "/usr/lib/python3/dist-packages/tox/session.py", line 390, in
> runcommand
>     return self.subcommand_test()
>   File "/usr/lib/python3/dist-packages/tox/session.py", line 555, in
> subcommand_test
>     action=action)
>   File "/usr/lib/python3/dist-packages/tox/venv.py", line 384, in _pcall
>     redirect=redirect, ignore_ret=ignore_ret)
>   File "/usr/lib/python3/dist-packages/tox/session.py", line 140, in popen
>     stdout=stdout, stderr=STDOUT)
>   File "/usr/lib/python3/dist-packages/tox/session.py", line 228, in _popen
>     stdout=stdout, stderr=stderr, env=env)
>   File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
>     restore_signals, start_new_session)
>   File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
>     raise child_exception_type(errno_num, err_msg)
> FileNotFoundError: [Errno 2] No such file or directory:
> '/root/install_script/py/vdsm/.tox/imports/bin/pip'
> Makefile:972: recipe for target 'imports' failed
> make: *** [imports] Error 1
>
>   but 'pip' file is exist,
> # ls -l /root/install_script/py/vdsm/.tox/imports/bin/pip
> -rwxr-xr-x 1 root root 224 6月  28 09:14
> /root/install_script/py/vdsm/.tox/imports/bin/pip
> what may caused it ?
>

I have no idea :-)

This is known to work on rhel 7.x, Centos 7.x, Fedora 25, 26, and 27:

    ./autogen.sh --system
    make
    make check

See tests/README for more options, for example running only one test
module or selecting specific tests.

If you have trouble, you can also use vdsm container to run the tests:

docker run --privileged --rm -it -v `pwd`:/vdsm:Z
ovirtorg/vdsm-test-fedora-25 bash

Should work from the root of a vdsm tree, mounting the source at /vdsm
inside
the container.

Nir


>
>
>
>
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170815/be51ec78/attachment.html>


More information about the Devel mailing list