diskimage-builder/tests/run_functests.sh
Dmitry Tantsur 0e122e8e35 Add a tox target to run functional tests locally
Now 'tox -efunc' can be invoked to run all functional tests in
the 'venv' tox environment. Also `tox -efunc element-name` can be
used to run function tests for one element (e.g. ironic-agent).

Change-Id: Ia685d1b2a7deef2f8b98876ac09792134dd30f2f
2015-10-23 12:05:23 +02:00

14 lines
191 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
element=${1:-}
if [ -z $element ]; then
$(dirname $0)/image_output_formats.bash
fi
$(dirname $0)/test_elements.bash $element
echo "Tests passed!"