← Back to team overview

holland-coredev team mailing list archive

[Bug 753084] [NEW] ValueError in tests.core.test_util.test_diskfree

 

Public bug reported:

Using amsterdam (current) on Fedora 14 64bit:

[wdierkes@derks-linux holland]$ ./scripts/mkvirtenv.py --no-site-packages
New python executable in /home/wdierkes/holland-test/bin/python
Installing setuptools..........................done.
[INFO] Installed holland-core.
[INFO] Installing holland plugins
[INFO] Installed plugin holland.lib.common
[INFO] Installed plugin holland.lib.mysql
[INFO] Installed plugin holland.lib.lvm
[INFO] Installed plugin holland.backup.mysqldump
[INFO] Installed plugin holland.backup.mysql_lvm
[INFO] Installed plugin holland.backup.xtrabackup
[INFO] Starting shell in virtual environment /bin/bash - use ctrl-d to exit

[holland-test]% nosetests --verbosity 3
nose.config: INFO: Set working dir to /home/wdierkes/devel/holland/tests
nose.config: INFO: Working directory /home/wdierkes/devel/holland/tests is a package; adding to sys.path
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
... snip ok tests ...
tests.core.test_util.test_diskfree ... ERROR

======================================================================
ERROR: tests.core.test_util.test_diskfree
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
  File "/home/wdierkes/devel/holland/tests/core/test_util.py", line 83, in test_diskfree
    actual_bytes = int(commands.getoutput(real_cmd).strip())
ValueError: invalid literal for int() with base 10: '80%'

----------------------------------------------------------------------
Ran 96 tests in 38.849s

FAILED (errors=1)

** Affects: holland-backup
     Importance: Undecided
         Status: New

** Affects: holland-backup/1.1
     Importance: Undecided
         Status: New

** Changed in: holland-backup
    Milestone: None => 1.1.0a2

** Also affects: holland-backup/1.1
   Importance: Undecided
       Status: New

** Changed in: holland-backup/1.1
    Milestone: None => 1.1.0a2

** Description changed:

- on Fedora 14 64bit:
+ Using amsterdam (current) on Fedora 14 64bit:
  
  [wdierkes@derks-linux holland]$ ./scripts/mkvirtenv.py --no-site-packages
  New python executable in /home/wdierkes/holland-test/bin/python
  Installing setuptools..........................done.
  [INFO] Installed holland-core.
  [INFO] Installing holland plugins
  [INFO] Installed plugin holland.lib.common
  [INFO] Installed plugin holland.lib.mysql
  [INFO] Installed plugin holland.lib.lvm
  [INFO] Installed plugin holland.backup.mysqldump
  [INFO] Installed plugin holland.backup.mysql_lvm
  [INFO] Installed plugin holland.backup.xtrabackup
  [INFO] Starting shell in virtual environment /bin/bash - use ctrl-d to exit
  
  [holland-test]% nosetests --verbosity 3
  nose.config: INFO: Set working dir to /home/wdierkes/devel/holland/tests
  nose.config: INFO: Working directory /home/wdierkes/devel/holland/tests is a package; adding to sys.path
  nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
  ... snip ok tests ...
  tests.core.test_util.test_diskfree ... ERROR
  
  ======================================================================
  ERROR: tests.core.test_util.test_diskfree
  ----------------------------------------------------------------------
  Traceback (most recent call last):
-   File "/usr/lib/python2.7/site-packages/nose/case.py", line 186, in runTest
-     self.test(*self.arg)
-   File "/home/wdierkes/devel/holland/tests/core/test_util.py", line 83, in test_diskfree
-     actual_bytes = int(commands.getoutput(real_cmd).strip())
+   File "/usr/lib/python2.7/site-packages/nose/case.py", line 186, in runTest
+     self.test(*self.arg)
+   File "/home/wdierkes/devel/holland/tests/core/test_util.py", line 83, in test_diskfree
+     actual_bytes = int(commands.getoutput(real_cmd).strip())
  ValueError: invalid literal for int() with base 10: '80%'
  
  ----------------------------------------------------------------------
  Ran 96 tests in 38.849s
  
  FAILED (errors=1)

-- 
You received this bug notification because you are a member of Holland
Build, which is subscribed to holland-backup.
https://bugs.launchpad.net/bugs/753084

Title:
  ValueError in tests.core.test_util.test_diskfree

Status in Holland Backup Framework:
  New
Status in holland-backup 1.1 series:
  New

Bug description:
  Using amsterdam (current) on Fedora 14 64bit:

  [wdierkes@derks-linux holland]$ ./scripts/mkvirtenv.py --no-site-packages
  New python executable in /home/wdierkes/holland-test/bin/python
  Installing setuptools..........................done.
  [INFO] Installed holland-core.
  [INFO] Installing holland plugins
  [INFO] Installed plugin holland.lib.common
  [INFO] Installed plugin holland.lib.mysql
  [INFO] Installed plugin holland.lib.lvm
  [INFO] Installed plugin holland.backup.mysqldump
  [INFO] Installed plugin holland.backup.mysql_lvm
  [INFO] Installed plugin holland.backup.xtrabackup
  [INFO] Starting shell in virtual environment /bin/bash - use ctrl-d to exit

  [holland-test]% nosetests --verbosity 3
  nose.config: INFO: Set working dir to /home/wdierkes/devel/holland/tests
  nose.config: INFO: Working directory /home/wdierkes/devel/holland/tests is a package; adding to sys.path
  nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
  ... snip ok tests ...
  tests.core.test_util.test_diskfree ... ERROR

  ======================================================================
  ERROR: tests.core.test_util.test_diskfree
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/nose/case.py", line 186, in runTest
      self.test(*self.arg)
    File "/home/wdierkes/devel/holland/tests/core/test_util.py", line 83, in test_diskfree
      actual_bytes = int(commands.getoutput(real_cmd).strip())
  ValueError: invalid literal for int() with base 10: '80%'

  ----------------------------------------------------------------------
  Ran 96 tests in 38.849s

  FAILED (errors=1)



Follow ups

References