Remove odd os.getcwd() call used inside main() when searching for tests.
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Aug 2009 05:37:52 +0000 (05:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Aug 2009 05:37:52 +0000 (05:37 -0000)
svn path=/main/trunk/; revision=13927

pym/portage/tests/__init__.py

index 927af49c74804e338746c539326c4945a883977a..7f207a2d0f2d3380482d896b3f8492b9c4cf8614 100644 (file)
@@ -18,7 +18,7 @@ def main():
   # the os.walk help mentions relative paths as being quirky
        # I was tired of adding dirs to the list, so now we add __test__
        # to each dir we want tested.
-       for root, dirs, files in os.walk(os.getcwd()):
+       for root, dirs, files in os.walk(basedir):
                if ".svn" in dirs:
                        dirs.remove('.svn')
                if TEST_FILE in files: