Test cases broken?
Christoph Thiel
cthiel at suse.de
Wed Aug 20 13:12:53 PDT 2008
On Mon, Aug 18, 2008 at 12:52:26PM -0400, Christoph Thiel wrote:
> Hi there,
>
> just enabled the testsuite in openSUSE's smart package and got the following
> fall-out:
I now have smart in autobuild (build system @SUSE/Novell) and found some
further issues:
on ppc, s390 and s390x:
[tests/policy-upgrade.txt]
**********************************************************************
File "./tests/policy-upgrade.txt", line 99, in policy-upgrade.txt
Failed example:
for pkg, op in sorted(transaction.getChangeSet().items()):
print pkg, op
Expected:
A-1 REMOVE
A-2 INSTALL
B-1 REMOVE
B-2 INSTALL
Got:
B-2 INSTALL
B-1 REMOVE
A-2 INSTALL
A-1 REMOVE
**********************************************************************
1 items had failures:
1 of 21 in policy-upgrade.txt
***Test Failed*** 1 failures.
on ia64:
[tests/fetcher.py]
[
0%]
.F
======================================================================
FAIL: test_user_agent (tests.fetcher.FetcherTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/src/packages/BUILD/smart-1.0/tests/fetcher.py", line 39, in
test_user_agent
self.assertTrue(("User-Agent: smart/%s\r\n" % VERSION) in headers)
AssertionError
on pcc64:
OK
F....
======================================================================
FAIL: test_sorting_arch_used_when_same_version
(tests.rpmbase.RPMPackageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/src/packages/BUILD/smart-1.0/tests/mocker.py", line 101, in
test_method_wrapper
test_method()
File "/usr/src/packages/BUILD/smart-1.0/tests/rpmbase.py", line 38, in
test_sorting_arch_used_when_same_version
self.assertEquals(lst, [pkg1, pkg2, pkg3])
AssertionError: [name-1.0-1 at i686, name-1.0-1 at i386, name-1.0-1 at i586] !=
[name-1.0-1 at i386, name-1.0-1 at i586, name-1.0-1 at i686]
Also, in our special BETA distribution, which already has python-2.6b2-2, I
found on i386:
/usr/src/packages/BUILD/smart-1.0/smart/fetcher.py:384: DeprecationWarning:
/the sha module is deprecated; use the has
hlib module instead
import sha
Best,
Christoph
--
Christoph Thiel, Tech. Project Management, Research & Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
More information about the Smart
mailing list