[Python-apps-team] Bug#717126: pybik: autopkgtest needs X display

Martin Pitt martin.pitt at ubuntu.com
Wed Jul 17 05:26:43 UTC 2013


Package: pybik
Version: 1.1-1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch saucy

Hello,

thanks for adding an autopkgtest to pybik! However, it currently fails
in a VM environment as this needs an X server:

  https://jenkins.qa.ubuntu.com/job/saucy-adt-pybik/1/ARCH=i386,label=adt/

I fixed the Ubuntu package to run the test through xvfb. Also, the
full test seems to take very long, I guess xvfb doesn't help there (I
aborted it after an hour). So I modified it to only run two individual
tests; as the purpose of autopkgtest is primarily to check whether the
package works (missing files, wrong paths, missing dependencies, and
so on), I think this is sufficient.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
diff -Nru pybik-1.1/debian/changelog pybik-1.1/debian/changelog
--- pybik-1.1/debian/changelog	2013-06-24 23:38:16.000000000 +0200
+++ pybik-1.1/debian/changelog	2013-07-17 07:18:30.000000000 +0200
@@ -1,3 +1,11 @@
+pybik (1.1-1ubuntu1) saucy; urgency=low
+
+  * Use xvfb in our autopkgtest.
+  * Only run the "min" and "preferences" tests in autopkgtest, as the full
+    test suite takes way too long (and might not even succeed) under xvfb.
+
+ -- Martin Pitt <martin.pitt at ubuntu.com>  Wed, 17 Jul 2013 06:54:57 +0200
+
 pybik (1.1-1) unstable; urgency=low
 
   * New upstream release
diff -Nru pybik-1.1/debian/tests/all pybik-1.1/debian/tests/all
--- pybik-1.1/debian/tests/all	2013-06-19 18:39:27.000000000 +0200
+++ pybik-1.1/debian/tests/all	2013-07-17 07:18:00.000000000 +0200
@@ -1,2 +1,2 @@
 #!/bin/sh
-pybik --test
+xvfb-run pybik --test=min --test=preferences
diff -Nru pybik-1.1/debian/tests/control pybik-1.1/debian/tests/control
--- pybik-1.1/debian/tests/control	2013-06-19 18:39:27.000000000 +0200
+++ pybik-1.1/debian/tests/control	2013-07-17 06:42:40.000000000 +0200
@@ -1,2 +1,2 @@
 Tests: all
-Depends: @
+Depends: @, xvfb


More information about the Python-apps-team mailing list