Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Vincent Lefevre-10
Source: gnucash
Version: 3.2-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

The build with "apt-get source -b gnucash" ends with:

[...]
118/118 Testing: python-bindings
118/118 Test: python-bindings
Command: "/usr/bin/python3" "/home/vinc17/tmp/gnucash-3.2/bindings/python/tests/runTests.py.in"
Directory: /home/vinc17/tmp/gnucash-3.2/.build/bindings/python/tests
"python-bindings" start time: Jul 15 23:33 CEST
Output:
----------------------------------------------------------
* 23:33:21  WARN <gnc.core-utils> no backend loaded, or the backend doesn't define register_cb, returning 0
* 23:33:21  WARN <gnc.core-utils> no backend loaded, or the backend doesn't define register_cb, returning 0
* 23:33:21  WARN <gnc.core-utils> no backend loaded, or the backend doesn't define register_cb, returning 0
* 23:33:21  WARN <gnc.core-utils> no backend loaded, or the backend doesn't define register_cb, returning 0
* 23:33:21  WARN <gnc.core-utils> no backend loaded, or the backend doesn't define register_cb, returning 0
.........................................
----------------------------------------------------------------------
Ran 41 tests in 0.150s

OK
<end of output>
Test time =   0.35 sec
----------------------------------------------------------
Test Passed.
"python-bindings" end time: Jul 15 23:33 CEST
"python-bindings" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 15 23:33 CEST
+ exit 2
make[1]: *** [debian/rules:83: override_dh_auto_test] Error 2
make[1]: Leaving directory '/home/vinc17/tmp/gnucash-3.2'
make: *** [debian/rules:26: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
E: Build command 'cd gnucash-3.2 && dpkg-buildpackage -b -uc' failed.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Vincent Lefevre-10
It is the following test that fails:

        Start  22: test-real-data
 22/118 Test  #22: test-real-data ...............................***Failed    0.01 sec

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Dmitry Smirnov
On Monday, 16 July 2018 9:03:59 AM AEST Vincent Lefevre wrote:
>         Start  22: test-real-data
>  22/118 Test  #22: test-real-data ...............................***Failed
>   0.01 sec

There is not enough information in this bug report to have a slightest clue
about the problem. Could you please at least quote a relevant part of log?

Test failure is followed by cat of "LastTest.log" that should have some
information about the failure.

I can not reproduce the problem in clean build environment.

--
Best wishes,
 Dmitry Smirnov.

---

Democracy is a pathetic belief in the collective wisdom of individual
ignorance.
        -- H. L. Mencken

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Vincent Lefevre-10
Control: tags -1 upstream
Control: forwarded -1 https://bugs.gnucash.org/show_bug.cgi?id=796763

I've reported the bug upstream, since I can reproduce it from git.

On 2018-07-16 09:53:13 +1000, Dmitry Smirnov wrote:

> On Monday, 16 July 2018 9:03:59 AM AEST Vincent Lefevre wrote:
> >         Start  22: test-real-data
> >  22/118 Test  #22: test-real-data ...............................***Failed
> >   0.01 sec
>
> There is not enough information in this bug report to have a slightest clue
> about the problem. Could you please at least quote a relevant part of log?
>
> Test failure is followed by cat of "LastTest.log" that should have some
> information about the failure.

This is not the case, and I didn't know this file.

Testing/Temporary/LastTest.log contains:

22/116 Testing: test-real-data
22/116 Test: test-real-data
Command: "/usr/bin/cmake" "-E" "env" "/bin/zsh" "/home/vinc17/software/gnucash/libgnucash/backend/xml/test/test-real-data.sh"
Directory: /home/vinc17/tmp/gnucash-build/libgnucash/backend/xml/test
"test-real-data" start time: Jul 16 01:44 CEST
Output:
----------------------------------------------------------
/home/vinc17/software/gnucash/libgnucash/backend/xml/test/test-real-data.sh:6: = not found
<end of output>
Test time =   0.02 sec
----------------------------------------------------------
Test Failed.
"test-real-data" end time: Jul 16 01:44 CEST
"test-real-data" time elapsed: 00:00:00
----------------------------------------------------------

The error corresponds to:

if [ "x$TEST_PATH" == "x" ] ; then

I'm wondering whether the test is run with zsh (my shell), which
yields such an error (since [ is not a zsh builtin), instead of
bash.

Well, this is confirmed by:

Command: "/usr/bin/cmake" "-E" "env" "/bin/zsh" "/home/vinc17/software/gnucash/libgnucash/backend/xml/test/test-real-data.sh"

> I can not reproduce the problem in clean build environment.

The build may be affected either by the user shell or by the SHELL
environment variable (both set to /bin/zsh in my case).

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Vincent Lefevre-10
Control: retitle -1 FTBFS: override_dh_auto_test fails due to test-real-data when $SHELL is set to /bin/zsh
Control: severity -1 minor
Control: tags -1 - moreinfo unreproducible

I could check that unsetting SHELL before building avoids the failure.

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply | Threaded
Open this post in threaded view
|

Bug#903862: FTBFS: override_dh_auto_test exits with exit 2

Vincent Lefevre-10
Control: tags -1 fixed-upstream

On 2018-07-16 03:41:02 +0200, Vincent Lefevre wrote:
> Control: retitle -1 FTBFS: override_dh_auto_test fails due to test-real-data when $SHELL is set to /bin/zsh
> Control: severity -1 minor
> Control: tags -1 - moreinfo unreproducible
>
> I could check that unsetting SHELL before building avoids the failure.

This has been fixed upstream.

BTW, I think that when building a package (-b option), apt-get should
sanitize the environment, like what debuild does. I've reported a
wishlist bug for that:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930786

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)