[csw-devel] SF.net SVN: gar:[8050] csw/mgar/gar/v2/bin/checkpkg.d/checkpkg_test.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 17 21:11:55 CET 2010


Revision: 8050
          http://gar.svn.sourceforge.net/gar/?rev=8050&view=rev
Author:   wahwah
Date:     2010-01-17 20:11:53 +0000 (Sun, 17 Jan 2010)

Log Message:
-----------
mGAR v2: checkpkg, fix for one unit test, two more to go

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/checkpkg.d/checkpkg_test.py

Modified: csw/mgar/gar/v2/bin/checkpkg.d/checkpkg_test.py
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg.d/checkpkg_test.py	2010-01-17 19:50:12 UTC (rev 8049)
+++ csw/mgar/gar/v2/bin/checkpkg.d/checkpkg_test.py	2010-01-17 20:11:53 UTC (rev 8050)
@@ -450,13 +450,10 @@
 
   def testGetLinesBySoname_8(self):
     expected = {'foo.so.1': '/opt/csw/postgresql/lib/foo.so.1 foo'}
+    lines1 = {"/opt/csw/postgresql/lib": "/opt/csw/postgresql/lib/foo.so.1 foo"}
     pkgmap = self.pkgmap_mocker.CreateMock(checkpkg.SystemPkgmap)
-    pkgmap.GetPkgmapLineByBasename("foo")
-    lines1 = {"/opt/csw/lib/postgresql": "/opt/csw/lib/postgresql/foo.so.1 foo"}
     pkgmap.GetPkgmapLineByBasename("foo.so.1").AndReturn(lines1)
-    pkgmap.GetPkgmapLineByBasename("foo.so.1").AndReturn(lines1)
     self.pkgmap_mocker.ReplayAll()
-    pkgmap.GetPkgmapLineByBasename("foo")
     needed_sonames = set(["foo.so.1"])
     runpath_by_needed_soname = {"foo.so.1": ["/opt/csw/postgresql/lib/", "/usr/lib"]}
     isalist = ["isa-value-1", "isa-value-2"]


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list