From: Tianshan Qu Date: Mon, 4 Jul 2016 11:02:59 +0000 (+0800) Subject: fix rgw_roundtrip test fail X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F117%2Fhead;p=s3-tests.git fix rgw_roundtrip test fail boto no longer rewind itself in set_contents_from_file, which will trigger the assert in realistic/RandomContentFile::seek Signed-off-by: Tianshan Qu --- diff --git a/s3tests/roundtrip.py b/s3tests/roundtrip.py index e73f8db6..6486f9c5 100644 --- a/s3tests/roundtrip.py +++ b/s3tests/roundtrip.py @@ -27,7 +27,7 @@ def writer(bucket, objname, fp, queue): start = time.time() try: - key.set_contents_from_file(fp) + key.set_contents_from_file(fp, rewind=True) except gevent.GreenletExit: raise except Exception as e: