From: inikep Date: Thu, 9 Jun 2016 11:14:21 +0000 (+0200) Subject: test-zstd-speed.py: fixed git clone X-Git-Tag: v0.7.0^2~37^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=348a53a842a2f831770fbb68861cd584d1b4b343;p=thirdparty%2Fzstd.git test-zstd-speed.py: fixed git clone --- diff --git a/tests/test-zstd-speed.py b/tests/test-zstd-speed.py index a69b1b751..b1c345f69 100755 --- a/tests/test-zstd-speed.py +++ b/tests/test-zstd-speed.py @@ -194,15 +194,16 @@ if __name__ == '__main__': test_path = os.getcwd() + '/' + test_dir_name # /path/to/zstd/tests/speedTest clone_path = test_path + '/' + 'zstd' # /path/to/zstd/tests/speedTest/zstd - execute.cwd = clone_path # clone ZSTD repo if needed if not os.path.isdir(test_path): os.mkdir(test_path) if not os.path.isdir(clone_path): + execute.cwd = test_path execute('git clone ' + repo_url) if not os.path.isdir(clone_path): raise RuntimeError("ZSTD clone not found: " + clone_path) + execute.cwd = clone_path while True: pid = str(os.getpid())