Some unit tests fail when run under an sbuild chroot

Bug #1593170 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-download-manager (Ubuntu)
Fix Released
High
Olivier Tilloy

Bug Description

(similar to bug #1567294 and bug #1592475)

This is because in an sbuild chroot HOME is set to /sbuild-nonexistent.

09:59:00 task-0: ********* Start testing of TestDownload *********
09:59:00 task-0: Config: Using QtTest library 5.5.1, Qt 5.5.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160413)
09:59:00 task-0: PASS : TestDownload::initTestCase()
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Start http server
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Server dir: "/sbuild-nonexistent/.qttest/share/test_client_download_client/TestDownload/http_server"
09:59:00 task-0: QWARN : TestDownload::testAllowMobileDownload(Enabled) QProcess: Destroyed while process ("python") is still running.
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Start http server
09:59:00 task-0: QWARN : TestDownload::testAllowMobileDownload(Enabled) QProcess: Destroyed while process ("python") is still running.
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Start http server
09:59:00 task-0: QWARN : TestDownload::testAllowMobileDownload(Enabled) QProcess: Destroyed while process ("python") is still running.
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Start http server
09:59:00 task-0: QDEBUG : TestDownload::testAllowMobileDownload(Enabled) Http server running on 8110
09:59:00 task-0: FAIL! : TestDownload::testAllowMobileDownload() Caught unhandled exception
09:59:00 task-0: Loc: [qtestcase.cpp(2657)]
09:59:00 task-0: Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted
09:59:00 task-0: ********* Finished testing of TestDownload *********
09:59:00 terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
09:59:00 what(): boost::filesystem::create_directories: Permission denied: "/sbuild-nonexistent/.qttest/share/test_client_download_client"

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-download-manager - 1.2+16.10.20160722.1-0ubuntu1

---------------
ubuntu-download-manager (1.2+16.10.20160722.1-0ubuntu1) yakkety; urgency=medium

  [ Olivier Tilloy ]
  * Fix unit tests when run under an sbuild chroot. (LP: #1593170)

 -- Michael Sheldon <email address hidden> Fri, 22 Jul 2016 11:15:14 +0000

Changed in ubuntu-download-manager (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.