All pastes #613369 Raw Edit

pkgcore tests

public text v1 · immutable
·published 2007-07-10 23:06 UTC
rendered paste body
======================================================================
ERROR: test_find_binary (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 45, in test_find_binary
    self.assertIn(self.dir, spawn.find_binary(script_name))
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 343, in find_binary
    raise CommandNotFound(binary)
CommandNotFound: Execution Failure: CommandNotFound Exception: Couldn't find 'pkgcore-findpath-test.sh'

======================================================================
ERROR: test_logfile (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 196, in test_logfile
    self.assertEqual(
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 162, in spawn
    binary = find_binary(binary)
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 332, in find_binary
    raise CommandNotFound(binary)
CommandNotFound: Execution Failure: CommandNotFound Exception: Couldn't find '/tmp/tmpabGaHp/logfile.sh'

======================================================================
ERROR: test_sandbox (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 74, in test_sandbox
    self.assertIn("libsandbox.so", [os.path.basename(x.strip()) for x in
IndexError: list index out of range

======================================================================
ERROR: test_sandbox_empty_dir (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 98, in test_sandbox_empty_dir
    self.assertIn("libsandbox.so", [os.path.basename(x.strip()) for x in
IndexError: list index out of range

======================================================================
ERROR: test_umask (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 213, in test_umask
    spawn.spawn_get_output(fp)[1][0].strip().lstrip("0"))
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 434, in spawn_get_output
    mypid = spawn_type(mycommand, fd_pipes=fd_pipes, **keywords)
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 162, in spawn
    binary = find_binary(binary)
  File "/mnt/store/compile/pkgcore/pkgcore/spawn.py", line 332, in find_binary
    raise CommandNotFound(binary)
CommandNotFound: Execution Failure: CommandNotFound Exception: Couldn't find '/tmp/tmpJFzrpx/portage_spawn_umask.sh'

======================================================================
FAIL: test_get_output (pkgcore.test.test_spawn.SpawnTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/test_spawn.py", line 66, in test_get_output
    spawn.spawn_get_output(fp, spawn_type=spawn.spawn_bash, **args))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: [0, ['dar\n']] != [126, []]

======================================================================
FAIL: test_changed_use (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 299, in test_changed_use
    Color('fg', 'yellow'), '-bootstrap%" ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -6,6 +6,4 @@
 <Color: mode - fg; color - red>
 'static '
 <Color: mode - fg; color - yellow>
-'-bootstrap%" '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'-bootstrap%" \n'

======================================================================
FAIL: test_downgrade (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 240, in test_downgrade
    Color('fg', 'blue'), '[1.0.4] ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -6,6 +6,4 @@
 <Color: mode - fg; color - green>
 'app-arch/bzip2-1.0.3-r6 '
 <Color: mode - fg; color - blue>
-'[1.0.4] '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'[1.0.4] \n'

======================================================================
FAIL: test_misc (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 277, in test_misc
    'S   ] ', Color('fg', 'green'), 'app-arch/bzip2-1.0.3-r6 ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -4,6 +4,4 @@
 <Color: mode - fg; color - green>
 'S   ] '
 <Color: mode - fg; color - green>
-'app-arch/bzip2-1.0.3-r6 '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'app-arch/bzip2-1.0.3-r6 \n'

======================================================================
FAIL: test_multiuse (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 272, in test_multiuse
    Color('fg', 'yellow'), '-bootstrap%" ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -6,6 +6,4 @@
 <Color: mode - fg; color - yellow>
 'static% '
 <Color: mode - fg; color - yellow>
-'-bootstrap%" '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'-bootstrap%" \n'

======================================================================
FAIL: test_nouse (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 255, in test_nouse
    'USE="', Color('fg', 'yellow'), '-static%" ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -4,6 +4,4 @@
 <Color: mode - fg; color - green>
 'app-arch/bzip2-1.0.3-r6 USE="'
 <Color: mode - fg; color - yellow>
-'-static%" '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'-static%" \n'

======================================================================
FAIL: test_reinstall (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 247, in test_reinstall
    Color('fg', 'green'), 'app-arch/bzip2-1.0.3-r6 ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -2,6 +2,4 @@
 <Color: mode - fg; color - yellow>
 '  R   ] '
 <Color: mode - fg; color - green>
-'app-arch/bzip2-1.0.3-r6 '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'app-arch/bzip2-1.0.3-r6 \n'

======================================================================
FAIL: test_upgrade (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 231, in test_upgrade
    Color('fg', 'blue'), '[1.0.3-r6] ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -4,6 +4,4 @@
 <Color: mode - fg; color - green>
 'app-arch/bzip2-1.0.4 '
 <Color: mode - fg; color - blue>
-'[1.0.3-r6] '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'[1.0.3-r6] \n'

======================================================================
FAIL: test_use (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 263, in test_use
    'USE="', Color('fg', 'yellow'), 'static%" ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -4,6 +4,4 @@
 <Color: mode - fg; color - green>
 'app-arch/bzip2-1.0.3-r6 USE="'
 <Color: mode - fg; color - yellow>
-'static%" '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'static%" \n'

======================================================================
FAIL: test_use_expand (pkgcore.test.ebuild.test_formatter.TestPortageVerboseFormatter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 171, in run
    self.forced_extra_frame(testMethod)
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 140, in forced_extra_frame
    test()
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 325, in test_use_expand
    Color('fg', 'yellow'), '-bootstrap%" ')
  File "/mnt/store/compile/pkgcore/pkgcore/test/ebuild/test_formatter.py", line 91, in assertOut
    'expected', 'actual', lineterm='')))
  File "/usr/lib64/python2.4/site-packages/snakeoil/test/__init__.py", line 123, in assertEqual
    msg or '%r != %r' % (obj1, obj2))
AssertionError: 
--- expected 
+++ actual 
@@ -6,6 +6,4 @@
 <Color: mode - fg; color - yellow>
 'static% '
 <Color: mode - fg; color - yellow>
-'-bootstrap%" '
-<Color: mode - fg; color - blue>
-' [1]\n'
+'-bootstrap%" \n'

----------------------------------------------------------------------
Ran 796 tests in 10.237s

FAILED (failures=10, errors=5)