From 9d7f71d5754c8b45f8e7c6ab80202de09933afb8 Mon Sep 17 00:00:00 2001 From: Richard Hawkins Date: Fri, 7 Aug 2015 18:14:13 -0500 Subject: Modify functional tests to use ostestr/testr Defcore uses Tempest, which uses Test Repository. This change makes it easier for Defcore to pull functional tests from Swift and run them. Additionally, using testr allows tests to be run in parallel. Concurrency set to 1 for now, >1 causes failures for reasons that are still TBD. With switch to ostestr all the server logs are being sent to stdout which makes it completely unreadable. Suppressing the logs by default now with a flag to enable it if desired. Co-Authored-By: John Dickinson Co-Authored-By: Robert Collins Co-Authored-By: Matthew Oliver Co-Authored-By: Ganesh Maharaj Mahalingam Change-Id: I53ef4a116996a772cf1f3abc2eb0ad60047322d5 Related-Bug: 1177924 --- .functests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.functests') diff --git a/.functests b/.functests index 65a9ea191..af989f50f 100755 --- a/.functests +++ b/.functests @@ -1,9 +1,11 @@ #!/bin/bash SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") +set -e -cd ${SRC_DIR}/test/functional -nosetests --exe $@ +cd ${SRC_DIR} +export TESTS_DIR=${SRC_DIR}/test/functional +ostestr --serial --pretty $@ rvalue=$? cd - -- cgit v1.2.1