1 From d2ee135a3c97f714e6da59adf45a91a2f1632057 Mon Sep 17 00:00:00 2001
2 From: Keith Holman <Keith.Holman@windriver.com>
3 Date: Wed, 4 Jun 2014 11:30:53 -0400
4 Subject: [PATCH] keystone: remove git commands in tests
6 Keystone tests are designed to be used during development
7 and will use git to download the latest keystoneclient from
8 source to test against. However, on the system installation
9 we install keystone-client as a separate package, and do not
10 want to download an external version to test. In order to
11 test against the version installed as a separate package,
12 remove the git calls that clone the keystone-client repository
13 and just returned the desired directory.
15 Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
17 keystone/tests/core.py | 2 ++
18 1 file changed, 2 insertions(+)
20 Index: git/keystone/tests/core.py
21 ===================================================================
22 --- git.orig/keystone/tests/core.py
23 +++ git/keystone/tests/core.py
26 working_dir = os.getcwd()
27 revdir = os.path.join(VENDOR, '%s-%s' % (name, rev.replace('/', '_')))
29 modcheck = os.path.join(VENDOR, '.%s-%s' % (name, rev.replace('/', '_')))
31 if os.path.exists(modcheck):
34 except environment.subprocess.CalledProcessError:
35 LOG.warning(_('Failed to checkout %s'), repo)