Adjust script to skip tests if directory not present

Closes-Bug: #1507683
Change-Id: Ifcba3584ba769f5be4309e5a357947cfe8f08d62
This commit is contained in:
Davanum Srinivas 2015-10-20 15:06:19 -04:00
parent 1fa8ef28b0
commit d64e83d9dd
1 changed files with 4 additions and 2 deletions

View File

@ -66,8 +66,10 @@ else
git mv openstack/common oslo_${new_lib}
fi
rmdir openstack
git mv tests/* oslo_${new_lib}/tests/
rmdir tests
if [[ -d tests ]]; then
git mv tests/* oslo_${new_lib}/tests/
rmdir tests
fi
# Fix imports after moving files
echo "Fixing imports..."