[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Disabling test does not work, is it a pybuild bug ?



Hello before reporting a bug against dh-python, I would like your opinion,

I try to skip test for all the debug version of the interpreter.
So I add this in the rules files

export PYBUILD_DISABLE_python2-dbg=test 
export PYBUILD_DISABLE_python3-dbg=test

and here is my test target


# WITH_QT_TEST=False to disable graphical tests
# SILX_OPENCL=False to disable OpenCL tests
# SILX_TEST_LOW_MEM=True to disable tests taking large amount of memory
# GPU=False to disable the use of a GPU with OpenCL test
# WITH_GL_TEST=False to disable tests using OpenGL
override_dh_auto_test:
	mkdir -p $(POCL_CACHE_DIR) # create POCL cachedir in order to avoid an FTBFS in sbuild
	dh_auto_test -- -s custom --test-args="env PYTHONPATH={build_dir} GPU=False SILX_OPENCL=False SILX_TEST_LAW_MEM=True xvfb-run -a --server-args=\"-screen 0 1024x768x24\" {interpreter} run_tests.py -v"


it works on jessie, stretch

but on unstable, I get this

I: pybuild base:184: env PYTHONPATH=/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build GPU=False SILX_OPENCL=False SILX_TEST_LAW_MEM=True xvfb-run -a --server-args="-screen 0 1024x768x24" python2.7-dbg run_tests.py -v
WARNING:run_tests:h5py missing: /usr/lib/python2.7/dist-packages/h5py/_errors.i386-linux-gnu.so: undefined symbol: Py_InitModule4
INFO:silx.setup:Use setuptools
INFO:silx.setup:Use setuptools.setup
[201131 refs]
WARNING:run_tests:Test silx 0.5.0 from /<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx
/usr/lib/python2.7/dist-packages/subprocess32.py:472: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
  "program uses threads.", RuntimeWarning)
/usr/lib/python2.7/dist-packages/IPython/qt.py:13: ShimWarning: The `IPython.qt` package has been deprecated. You should import from qtconsole instead.
  "You should import from qtconsole instead.", ShimWarning)
ERROR:silx.io.octaveh5:Module silx.io.octaveh5 requires h5py
WARNING:silx.opencl:Use of OpenCL has been disables from environment variable: SILX_OPENCL=0
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/i386-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/i386-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
ERROR:silx.gui.hdf5._utils:Module silx.gui.hdf5._utils requires h5py
Traceback (most recent call last):
  File "run_tests.py", line 369, in <module>
    unittest.defaultTestLoader.loadTestsFromNames(options.test_name))
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
    test = obj()
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/test/__init__.py", line 59, in suite
    test_suite.addTest(test_gui.suite())
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/test/__init__.py", line 72, in suite
    from ..hdf5 import test as test_hdf5
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/hdf5/__init__.py", line 38, in <module>
    from .Hdf5TreeView import Hdf5TreeView  # noqa
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/hdf5/Hdf5TreeView.py", line 34, in <module>
    from .Hdf5TreeModel import Hdf5TreeModel
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/hdf5/Hdf5TreeModel.py", line 36, in <module>
    from .Hdf5Item import Hdf5Item
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/hdf5/Hdf5Item.py", line 36, in <module>
    from . import _utils
  File "/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build/silx/gui/hdf5/_utils.py", line 46, in <module>
    raise e
ImportError: /usr/lib/python2.7/dist-packages/h5py/_errors.i386-linux-gnu.so: undefined symbol: Py_InitModule4
[795788 refs]
E: pybuild pybuild:283: test: plugin custom failed with: exit code=1: env PYTHONPATH=/<<BUILDDIR>>/silx-0.5.0+dfsg/.pybuild/pythonX.Y-dbg_2.7/build GPU=False SILX_OPENCL=False SILX_TEST_LAW_MEM=True xvfb-run -a --server-args="-screen 0 1024x768x24" python2.7-dbg run_tests.py -v
dh_auto_test: pybuild --test -i python{version}-dbg -p 2.7 -s custom "--test-args=env PYTHONPATH={build_dir} GPU=False SILX_OPENCL=False SILX_TEST_LAW_MEM=True xvfb-run -a --server-args=\"-screen 0 1024x768x24\" {interpreter} run_tests.py -v" returned exit code 13
debian/rules:54: recipe for target 'override_dh_auto_test' failed


It seems that pybuild do not honor the DISABLE.

Did I found a bug ?

thanks for your help

Frédéric


Reply to: