-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failing unittests in systemd-nspawn container #157
Comments
Can you try building the (I've also been meaning to apply for TU myself so I could push this package to [community], but eh. :) I've tried using |
Well..I don't want to test it with whipper-git because I want to build a stable release. Could you push a new version? I've just downloaded the tarball-release.. About building packages: You can use extra-x86_64-build instead of mkchrootpkg.. thats a wrapper for mkchrootpkg.. just do |
I'm not one of the core maintainers (edit: and as such can't tag and push new releases), but it seems futile to try and find a bug if it has already been fixed in latest master. Can you please try and see if building |
@Freso sure |
For the first error, The second error occurs because the test's assumption that the home directory of the user running the test is stored under |
@tobbez well, cdrdao should be in the path. It's definitly installed inside of the container. So the tests are nothing serious and the application will work? |
I think the first test fails in Arch Linux because the cdrdao package provided by that distribution ships with this patch applied: --- cdrdao/dao/main.cc~ 2009-04-16 15:34:27.000000000 +0200
+++ cdrdao/dao/main.cc 2009-04-16 15:34:38.000000000 +0200
@@ -207,7 +207,7 @@
static void printVersion()
{
- log_message(2, "Cdrdao version %s - (C) Andreas Mueller <[email protected]>",
+ log_message(0, "Cdrdao version %s - (C) Andreas Mueller <[email protected]>",
VERSION);
std::list<std::string> list; So what happens is that the "Cdrdao version" line isn't being printed to stderr unless cdrdao's verbosity level is increased to, at least, zero. I currently haven't checked if the error would go away by simply changing cdrdao's invocation in the test with something like this:
Regarding the second test I agree it's silly. Maybe it could be rewritten like this: --- test_common_directory.py.a
+++ test_common_directory.py.b
@@ -1,16 +1,18 @@
# -*- Mode: Python; test-case-name: whipper.test.test_common_directory -*-
# vi:si:et:sw=4:sts=4:ts=4
+from os.path import dirname, expanduser
from whipper.common import directory
-
from whipper.test import common
class DirectoryTestCase(common.TestCase):
+ HOME = expanduser('~')
+ HOME_PARENT = dirname(HOME)
def testAll(self):
path = directory.config_path()
- self.failUnless(path.startswith('/home'))
+ self.failUnless(path.startswith(DirectoryTestCase.HOME_PARENT))
path = directory.cache_path()
- self.failUnless(path.startswith('/home'))
+ self.failUnless(path.startswith(DirectoryTestCase.HOME_PARENT)) P.S. @shibumi sorry for the slow reply... |
The patch you refer to has no impact on this issue. The change in the patch means it will be displayed in more cases, not fewer. A message is displayed if its level is less than or equal to the verbosity requested upon invocation, and the default is The problem is most likely with Arch's
There are two issues here:
|
You're right, it seems I've got the logic backwards. I'm sorry.
@shibumi Could you try executing Thanks |
@JoeLametta Shall I just execute |
Just execute 😉 |
the first ERROR is because there is currently no pulseaudio in the container.. |
Thanks for your test. It seems @tobbez was right indeed (message here): that's not an issue which affects whipper. P.S. In the meantime I'm going to fix the second test failure using the patch proposed above (edited). |
@JoeLametta At the moment I just ignore the failing tests.. the package is already in the official repos: |
I've just pushed a commit to whipper's master branch which should fix Yeah, I've seen that. What I meant was: how are you going to deal with the first failure in Arch Linux (as that's something which isn't related to whipper?) |
@JoeLametta sorry which failure do you talk about exactly? All failures are because of failing unit tests for whipper. At the moment I just don't do unit tests and call the install process directly. So no real issue. |
@shibumi Regarding the
The output you've posted here seems to confirm that explanation. I'm referring to the two issues mentioned by tobbez in the quoted section: the cdrdao test is failing because of reasons beyond the control of whipper. |
@shibumi Nothing to reply to my previous message? |
@JoeLametta What is the issue with libao in arch linux? We use upstream libao. There shouldn't be a problem. |
@shibumi I already explained this: libao will by default write errors to stdout when failing to load a plugin. This is simply not acceptable for a library, since it breaks other applications that parse the output from programs using that library. This behavior can be disabled in the configuration file ( Debian already had the very same problem, and fixed it that way: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590961#27. The way this needs to be fixed makes it a packaging problem, which means Arch has to fix that (i.e. add the |
@tobbez thanks I will add a bug report for this issue in the arch linux bug tracker. |
Hello,
I'd like to move whipper to the official arch linux repositories. For this I need to package whipper in a clean chroot/systemd-nspawn container. Whipper is building, but the unit tests are failing:
Do I miss a dependency or is this an issue because of the chroot?
My dependencies:
The text was updated successfully, but these errors were encountered: