From c8ba535aa186a6b0d994e4f7f04ebed4c2246725 Mon Sep 17 00:00:00 2001 From: KATO Tomoyuki Date: Mon, 4 Jan 2016 11:25:19 +0900 Subject: [PATCH] Skip non-existing test-requirements with pip install Change-Id: I251445672b46be1e31261c56501b9180f2e1a748 Closes-Bug: #1530421 --- autogenerate_config_docs/autohelp-wrapper | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autogenerate_config_docs/autohelp-wrapper b/autogenerate_config_docs/autohelp-wrapper index 7914ca1d..4d0e3381 100755 --- a/autogenerate_config_docs/autohelp-wrapper +++ b/autogenerate_config_docs/autohelp-wrapper @@ -179,7 +179,8 @@ if [ "$FAST" -eq 0 ] ; then else git checkout -b $BRANCH remotes/origin/$BRANCH fi - pip install -rrequirements.txt -rtest-requirements.txt + pip install -rrequirements.txt + [ -e "test-requirements.txt" ] && pip install -rtest-requirements.txt python setup.py install popd @@ -187,8 +188,9 @@ if [ "$FAST" -eq 0 ] ; then while read extra; do ( cd $SOURCESDIR/$extra - pip install -rrequirements.txt \ - -rtest-requirements.txt + pip install -rrequirements.txt + [ -e "test-requirements.txt" ] && pip install -rtest-requirements.txt + fi python setup.py install ) done < extra_repos/$project-$RELEASE.txt