X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-remove-git-commands-in-tests.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-remove-git-commands-in-tests.patch;h=928c0fbb7c7fe380623e61dbed039abd1e5b2581;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-remove-git-commands-in-tests.patch b/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-remove-git-commands-in-tests.patch new file mode 100644 index 0000000..928c0fb --- /dev/null +++ b/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-remove-git-commands-in-tests.patch @@ -0,0 +1,39 @@ +From d2ee135a3c97f714e6da59adf45a91a2f1632057 Mon Sep 17 00:00:00 2001 +From: Keith Holman +Date: Wed, 4 Jun 2014 11:30:53 -0400 +Subject: [PATCH] keystone: remove git commands in tests + +Keystone tests are designed to be used during development +and will use git to download the latest keystoneclient from +source to test against. However, on the system installation +we install keystone-client as a separate package, and do not +want to download an external version to test. In order to +test against the version installed as a separate package, +remove the git calls that clone the keystone-client repository +and just returned the desired directory. + +Signed-off-by: Keith Holman +--- + keystone/tests/core.py | 2 ++ + 1 file changed, 2 insertions(+) + +Index: git/keystone/tests/core.py +=================================================================== +--- git.orig/keystone/tests/core.py ++++ git/keystone/tests/core.py +@@ -125,6 +125,7 @@ + + working_dir = os.getcwd() + revdir = os.path.join(VENDOR, '%s-%s' % (name, rev.replace('/', '_'))) ++ """ + modcheck = os.path.join(VENDOR, '.%s-%s' % (name, rev.replace('/', '_'))) + try: + if os.path.exists(modcheck): +@@ -145,6 +146,7 @@ + fd.write('1') + except environment.subprocess.CalledProcessError: + LOG.warning(_('Failed to checkout %s'), repo) ++ """ + os.chdir(working_dir) + return revdir +