Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
files.sort()
for f in files:
filepath = os.path.join(root, f)
+ if not os.path.isfile(filepath):
+ self.logger.warning("Skipping non-regular file '{}'".format(filepath))
+ continue
# Add its size to the total bytes count (if applicable)
if self.follow_links or (not os.path.islink(filepath)):
if self.bytes_expected is not None:
producer.start()
cwriter = arv_put.ArvPutUploadJob([self.tempdir])
cwriter.start(save_collection=False)
- producer.join()
self.assertNotIn(fifo_filename, cwriter.manifest_text())
+ if producer.exitcode is None:
+ # If the producer is still running, kill it.
+ producer.terminate()
+ producer.join(1)
def test_symlinks_are_followed_by_default(self):
self.assertTrue(os.path.islink(os.path.join(self.tempdir_with_symlink, 'linkeddir')))