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

View File

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