Ensure PATH has /usr/sbin/ for Apex Unit Tests 11/56011/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 18 Apr 2018 18:52:22 +0000 (11:52 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 18 Apr 2018 18:54:17 +0000 (11:54 -0700)
Due to python-iptables calling out to ldconfig, we need to ensure
/usr/sbin is available when running the Apex unit tests.

Change-Id: I77fd4dedd6e7ad3c3831a1d181a5406d53a0e76e
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/apex/apex-unit-test.sh

index 3112c9d..3f15847 100755 (executable)
@@ -7,6 +7,8 @@ echo "Starting unit tests for Apex..."
 echo "---------------------------------------------------------------------------------------"
 echo
 
+PATH=$PATH:/usr/sbin
+
 
 pushd build/ > /dev/null
 for pkg in yamllint rpmlint iproute epel-release python34-devel python34-nose python34-PyYAML python-pep8 python34-mock python34-pip; do