Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #9751
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> |
| Newsgroups | linux.debian.maint.python |
| Subject | Disabling test does not work, is it a pybuild bug ? |
| Date | Wed, 16 Aug 2017 10:00:01 +0200 |
| Message-ID | <uf1p7-4gv-11@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Aug 16 07:54:22 2017 |
| Old-Return-Path | <frederic-emmanuel.picca@synchrotron-soleil.fr> |
| X-Amavis-Spam-Status | No, score=1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, RCVD_IN_DNSWL_NONE=-0.0001, THREADTOPIC=2] autolearn=no autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1 |
| Dkim-Filter | OpenDKIM Filter v2.10.3 brouette.synchrotron-soleil.fr 00B6F7000ED |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1502869046; bh=0o3C30qmtbbUR2gHgKwr+9BMl3jI9UVLS4dja0p/5BA=; h=From:To:Subject:Date:From; b=dBeKWM0p9/dzTQQCnaNpRN7OXqTlShnoMGNZTCADJsluBjdQTit7cmz618afUi/MP dOg+7Nr7lyGX5LsvRE4psuwpdtQndlFs+uSc2PMJGap907CH6Ynl1ORXRZZIbXawIy YcmWXkHO7CPjcwcF74dP4LWiu8d0DK8DLVwj00G4= |
| Dkim-Filter | OpenDKIM Filter v2.10.3 brouette.synchrotron-soleil.fr 04ACB7000EA |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1502869045; bh=0o3C30qmtbbUR2gHgKwr+9BMl3jI9UVLS4dja0p/5BA=; h=From:To:Subject:Date:From; b=X8cXUgokuPGTxVpW1ZKQTxnMn+i7X1yx/C6Qf+YNMfwNNYze190k8awB5gJdRIDN1 kyoDRDjjMaF9GdlFdb6apYfVmPQCaOQNUOMLUn4oHf12cUVpWpALXgXy0T+VhPV4HM o59mLg4GY1CUaGSrcKKk6SFcn+ZVxx0uGs9kk34U= |
| Thread-Topic | Disabling test does not work, is it a pybuild bug ? |
| Thread-Index | AdMWYoBOBLALoWuATqSqlRpCYrOZRQ== |
| Accept-Language | fr-FR, en-US |
| Content-Language | fr-FR |
| X-Originating-IP | [195.221.0.171] |
| Content-Type | text/plain; charset="iso-8859-1" |
| Content-Transfer-Encoding | quoted-printable |
| MIME-Version | 1.0 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15133 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53BB4152F3@SUN-DAG3.synchrotron-soleil.fr |
| Approved | robomod@news.nic.it |
| Lines | 106 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 16 Aug 2017 07:37:24 +0000 |
| X-Original-Message-ID | <A2A20EC3B8560D408356CAC2FC148E53BB4152F3@SUN-DAG3.synchrotron-soleil.fr> |
| Xref | csiph.com linux.debian.maint.python:9751 |
Show key headers only | View raw
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
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Disabling test does not work, is it a pybuild bug ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-16 10:00 +0200
csiph-web