Make the requirements.txt compatible with Colorado 83/24983/1
authorchenjiankun <chenjiankun1@huawei.com>
Mon, 28 Nov 2016 06:15:58 +0000 (06:15 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Mon, 28 Nov 2016 06:17:24 +0000 (06:17 +0000)
JIRA: YARDSTICK-428

Now in master, we move the requirements.txt from tests/ci/ to yardstick
root path.
But in colorado, this has yet to be done.If we cherry pick from master
to colorado, it will encounter error.
So we must make it compatible.

Change-Id: I0537d989e677b73e19a1e093166493f3f6d25783
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
jjb/yardstick/yardstick-project-jobs.yml

index 0cc6cd6..abc6eeb 100644 (file)
             # install python packages
             easy_install -U setuptools
             easy_install -U pip
-            pip install -r requirements.txt
+            pip install -r requirements.txt || pip install -r tests/ci/requirements.txt
             pip install -e .
 
             # unit tests