sahara-dashboard/tools/gate/integration/pre_test_hook.sh
chao liu 8005a7d916 use . instead of source.
Code conventions: Use “.” to source script files
When you have to source a script file, for example ,
a credentials file to gain access to user-only or
 admin-only CLI commands, use . instead of source.
See more:
http://docs.openstack.org/contributor-guide/writing-style/code-conventions

Change-Id: Ic4fd2da622f21e51f813e711cdedb7d1998592fd
2018-01-29 06:32:40 -08:00

22 lines
648 B
Bash
Executable File

#!/bin/bash
# This script will be executed inside pre_test_hook function in devstack gate
set -ex
. commons $@
wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img -O /tmp/xenial-server-cloudimg-amd64-disk1.img
cd /opt/stack/new/horizon/openstack_dashboard/local/local_settings.d
mv _20_integration_tests_scaffolds.py.example _20_integration_tests_scaffolds.py
mv _2010_integration_tests_deprecated.py.example _2010_integration_tests_deprecated.py
cat > /opt/stack/new/horizon/openstack_dashboard/test/integration_tests/local-horizon.conf <<EOF
[image]
panel_type=legacy
[flavors]
panel_type=legacy
EOF