examachine / pisi

PISI package manager of Pardus linux written in Python. The original development branch by the main author.
Other
39 stars 13 forks source link

tests: packagedb test hangs #44

Closed examachine closed 7 years ago

examachine commented 7 years ago

The tests hang at packagedb unit tests and do not move forward

$ tests/run.py ** Running all tests


Ran 7 tests in 3.857s

OK


Ran 4 tests in 8.532s

OK


Ran 4 tests in 0.011s

OK


Ran 2 tests in 9.284s

OK


Ran 4 tests in 0.002s

OK


Ran 3 tests in 3.382s

OK


Ran 2 tests in 0.000s

OK


Ran 4 tests in 0.001s

OK

====================================================================== ERROR: testResume (fetchertests.FetcherTestCase)

Traceback (most recent call last): File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/fetchertests.py", line 44, in testResume shutil.copy(resume_test_file, ctx.config.archives_dir()) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: 'tests/helloworld/hello-1.3.tar.gz.part'


Ran 2 tests in 1.298s

FAILED (errors=1)


Ran 1 test in 0.001s

OK

====================================================================== ERROR: testRemoteRead (filetests.FileTestCase)

Traceback (most recent call last): File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/filetests.py", line 30, in testRemoteRead f = File("http://uludag.org.tr/haberler/rootfs0.2.html", File.read) File "./pisi/file.py", line 160, in init localfile = File.download(uri, transfer_dir, sha1sum, compress, sign) File "./pisi/file.py", line 119, in download fetch_url(uri, transfer_dir, ctx.ui.Progress) File "./pisi/fetcher.py", line 55, in fetch_url fetch.fetch() File "./pisi/fetcher.py", line 100, in fetch self.fetchRemoteFile(partialfile) File "./pisi/fetcher.py", line 198, in fetchRemoteFile self.err(('Cannot fetch %s; %s') % (uri, e[-1][-1])) File "./pisi/fetcher.py", line 253, in err raise FetchError(error) FetchError: Cannot fetch http://uludag.org.tr/haberler/rootfs0.2.html; nodename nor servname provided, or not known


Ran 2 tests in 0.224s

FAILED (errors=1)


Ran 2 tests in 0.000s

OK


Ran 3 tests in 2.269s

OK


Ran 3 tests in 0.006s

OK


Ran 1 test in 0.000s

OK

examachine commented 7 years ago

$ tests/run.py packagedb

examachine commented 7 years ago

fixed in SVN

$ tests/run.py packagedb


Ran 2 tests in 3.318s

OK