From f2840c626d2eb712055ccb5dcbad25d040f17ce1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 3 Jan 2015 20:25:01 +0100 Subject: Auto-skip performance tests more quietly on travis ... and be able to run performance tests independently of the chosen performance test repo Now all tests run fine locally --- git/test/lib/helper.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git/test/lib/helper.py') diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index 40e34fe0..df94abde 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -8,6 +8,7 @@ import os import sys from git import Repo, Remote, GitCommandError, Git from unittest import TestCase +import time import tempfile import shutil import cStringIO @@ -191,6 +192,8 @@ def with_rw_and_rw_remote_repo(working_tree_ref): # On windows, this will fail ... we deal with failures anyway and default to telling the user to do it try: gd = Git().daemon(temp_dir, as_process=True) + # yes, I know ... fortunately, this is always going to work if sleep time is just large enough + time.sleep(0.5) except Exception as err: gd = None # end -- cgit v1.2.1