]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Switch to os-testr to control testr
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 9 Jun 2015 09:28:10 +0000 (11:28 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Wed, 10 Jun 2015 10:37:46 +0000 (12:37 +0200)
It's a nice wrapper spinned out recently from tempest-lib that should
cover all our needs that we currently fulfill with pretty_tox.sh.

Change-Id: I2268ed45ab628fe5dcab657d6287594847ab587c

test-requirements.txt
tools/pretty_tox.sh [deleted file]
tox.ini

index be4bd087cbce986ac7c8765f4f009327cc7b28dd..6a6436aa3fd0eee63ef4931b1edefeca078fa6ea 100644 (file)
@@ -16,4 +16,5 @@ testtools>=0.9.36,!=1.2.0
 testscenarios>=0.4
 WebTest>=2.0
 oslotest>=1.5.1  # Apache-2.0
+os-testr>=0.1.0
 tempest-lib>=0.5.0
diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh
deleted file mode 100755 (executable)
index 0fc3605..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! /bin/sh
-
-TESTRARGS=$1
-
-exec 3>&1
-status=$(exec 4>&1 >&3; ( python setup.py testr --slowest --testr-args="--subunit $TESTRARGS"; echo $? >&4 ) | subunit-trace -f) && exit $status
diff --git a/tox.ini b/tox.ini
index bd28ed3e2699cf219d8d8ed3f1991b426de324ba..8f9cf95dc9db04ec21ac212bca605699a0bd623b 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -12,8 +12,8 @@ deps = -r{toxinidir}/requirements.txt
 whitelist_externals = sh
 commands =
   dsvm-functional: {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
-  sh tools/pretty_tox.sh '{posargs}'
-# there is also secret magic in pretty_tox.sh which lets you run in a fail only
+  ostestr --regex '{posargs}'
+# there is also secret magic in ostestr which lets you run in a fail only
 # mode. To do this define the TRACE_FAILONLY environmental variable.
 
 [testenv:api]