Fix SFC Verify Job Virtualenv Location 13/64513/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 5 Nov 2018 17:07:26 +0000 (09:07 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 5 Nov 2018 17:07:26 +0000 (09:07 -0800)
'/var/cache' isn't writable by others, but /var/tmp should be.

Also fixed the issue of not sourcing 'activate' within the bin path.

Change-Id: Ib7830cc33543227d6b67cac00edc212d889aec10
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/sfc/sfc-project-jobs.yaml

index 9ca0b92..31f7aa6 100644 (file)
@@ -77,8 +77,9 @@
     name: sfc-unit-tests-and-docs
     builders:
       - shell: |
-          virtualenv /var/cache/sfc
-          source /var/cache/sfc
+          #!/bin/bash
+          virtualenv /var/tmp/sfc
+          source /var/tmp/sfc/bin/activate
           pip install tox
           cd $WORKSPACE && tox