ensure unit test ci can write /usr/local

Certain repos like openpower-debug-collector generate their error files
on the fly during build time. These are installed into
/usr/local/share/phosphor-dbus-yaml/ sub-directories.

Without this change, this is happening:

/home/jenkins-op/workspace/ci-repository/openbmc/openpower-debug-collector > make -j 80 -l 80 -O
cp: cannot create regular file '/usr/local/share/phosphor-dbus-yaml/yaml/org/open_power/Host/Boot.errors.yaml': Permission denied

Since this is just a docker container and /usr/local is not persisted,
give permission to all of /usr/local of the ID running the script.

Tested:
- Verified openpower-debug-collector repo now passes CI

Change-Id: Iea1e89f017e9128b0c538392302b177b7c7d600d
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
1 file changed