Created attachment 537650 [details] emerge --info [180/182] Processing build/main/tests/pylib/test_agentx.py 20:39:23 runner ['/usr/bin/python2.7', 'test_agentx.py'] [181/182] Processing build/main/tests/pylib/test_agentx_packet.py 20:39:24 runner ['/usr/bin/python2.7', 'test_agentx_packet.py'] [182/182] Processing build/main/tests/pylib/test_packet.py 20:39:24 runner ['/usr/bin/python2.7', 'test_packet.py'] Waf: Leaving directory `/var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main' Wrote test log to: /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/test.log execution summary tests that pass 6/7 /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/test_libntp /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/test_ntpd /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/test_statfiles.py /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/test_util.py /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/test_agentx.py /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/test_agentx_packet.py tests that fail 1/7 /var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/test_packet.py stderr: ....................................E..................... ====================================================================== ERROR: test_MRUEntry (__main__.TestMisc) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_packet.py", line 563, in test_MRUEntry self.assertEqual(cls.sortaddr(), File "/var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7/build/main/tests/pylib/ntp/packet.py", line 725, in sortaddr return socket.inet_pton(socket.AF_INET6, addr) error: can't use AF_INET6, IPv6 is disabled ---------------------------------------------------------------------- Ran 58 tests in 0.035s FAILED (errors=1) * ERROR: net-misc/ntpsec-1.1.1::gentoo failed (compile phase): * build failed * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 3893: Called python_foreach_impl 'run_in_build_dir' 'python_compile' * environment, line 3361: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'python_compile' * environment, line 2509: Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'python_compile' * environment, line 2507: Called _python_multibuild_wrapper 'run_in_build_dir' 'python_compile' * environment, line 522: Called run_in_build_dir 'python_compile' * environment, line 3875: Called python_compile * environment, line 3891: Called waf-utils_src_compile * environment, line 4918: Called die * The specific snippet of code: * "${WAF_BINARY}" ${_mywafconfig} ${jobs} || die "build failed" * * If you need support, post the output of `emerge --info '=net-misc/ntpsec-1.1.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/ntpsec-1.1.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-misc/ntpsec-1.1.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/ntpsec-1.1.1/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1-python2_7' * S: '/var/tmp/portage/net-misc/ntpsec-1.1.1/work/ntpsec-1.1.1'
Why test phase appears without USE=test ?
Created attachment 539912 [details, diff] potential patch for ./wscript Seems to stop tests from building/executing when running './waf build'. Does not seem to stop them when running './waf check'. The resulting products were not tested.
Use "./waf build --notests" to disable running tests as part of the build. No code changes are necessary. FYI "./waf check" will force running all tests since it's intended for running tests. If you don't want to run tests, then don't run it.
I'll look at how we can conditionalize this test on python actually supporting IPv6, in the upstream code.
Should be fixed upstream in https://gitlab.com/NTPsec/ntpsec/merge_requests/733
addressed upstream in https://gitlab.com/NTPsec/ntpsec/merge_requests/733 will be fixed in the next release.
(In reply to James Browning from comment #6) > addressed upstream in https://gitlab.com/NTPsec/ntpsec/merge_requests/733 > will be fixed in the next release. since this is just a problem in tests, we can live with it until the next release.
(In reply to Anthony Basile from comment #7) > (In reply to James Browning from comment #6) > > addressed upstream in https://gitlab.com/NTPsec/ntpsec/merge_requests/733 > > will be fixed in the next release. > > since this is just a problem in tests, we can live with it until the next > release. But test phase is run unconditionally, see comment #1
https://lists.ntpsec.org/pipermail/devel/2018-August/006461.html suggest that a new release could be out as soon as the 27th.
There is a new release out 1.1.2 does not address running tests always. It does make ipv6 tests run only when ipv6 enabled.
ntpsec-1.1.2 installed without this problem. Thank you for your effort.