Browse code

Remove use of git -C option from tempest venv creation

The -C option is not available in git versions older than "1.8.5" which
are still shipped by several distributions including centos 7.

Due to this incompatibility the patch has broken third party CI for
Cisco on Ironic.

Change-Id: I09a6f83f8b2fee870e6e1c50cbfdf2da4d70dfb2

Sam Betts authored on 2018/03/12 19:34:01
Showing 1 changed files
... ...
@@ -556,7 +556,7 @@ function configure_tempest {
556 556
     fi
557 557
 
558 558
     # The requirements might be on a different branch, while tempest needs master requirements.
559
-    git -C $REQUIREMENTS_DIR show master:upper-constraints.txt > u-c-m.txt
559
+    (cd $REQUIREMENTS_DIR && git show master:upper-constraints.txt) > u-c-m.txt
560 560
     tox -evenv-tempest -- pip install -c u-c-m.txt -r requirements.txt
561 561
 
562 562
     # Auth: