Hi,
On 2024-01-15 17:34, Christoph Berg wrote:
Re: Andrius Merkys
The patch proposed in #1042610 does not fix test failure. Interestingly, the
failure seems to be nondeterministic: after patching #1042610 some builds
succeed. However, I did not manage to find the root cause.
The difference between a working and a failing run is this diff:
dh_auto_test -O--buildsystem=pybuild
-I: pybuild base:305: cd
/home/myon/debian/nmu/behave/behave/.pybuild/cpython3_3.12_behave/build;
python3.12 -m pytest test
+I: pybuild base:305: cd
/home/myon/debian/nmu/behave/behave/.pybuild/cpython3_3.12_behave/build;
python3.12 -m pytest tests
I.e. pybuild invokes either
"python3.12 -m pytest test" (good)
or "python3.12 -m pytest tests" (bad)
Great catch! I tried diff'ing working and failing buildlogs as well, but
probably was not that attentive to spot this.
I tried to drill down where this decision is made but couldn't spot
it.
This might be a bug in dh-python.
As a workaround, we can move the "tests" directory aside. Then it will
reliably run the "test" target. (Not pretty, but I want to get the
package unstuck.)
Yes, this makes sense.
Best,
Andrius