Allow dot test runners from any dir
Currently the .*test files in the source tree root seem to assume you're in that directory when you run them. This change should work exactly the same except for removing that restriction. Change-Id: I9b037016490dd6d5b515cb2c3cad2f99ee40bb6d
This commit is contained in:
parent
13937ad696
commit
1f83f007e8
@ -1,11 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd test/functional
|
||||
SRC_DIR=$(dirname $0)
|
||||
|
||||
cd ${SRC_DIR}/test/functional
|
||||
nosetests --exe $@
|
||||
func1=$?
|
||||
cd -
|
||||
|
||||
cd test/functionalnosetests
|
||||
cd ${SRC_DIR}/test/functionalnosetests
|
||||
nosetests --exe $@
|
||||
func2=$?
|
||||
cd -
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd test/probe
|
||||
cd $(dirname $0)/test/probe
|
||||
nosetests --exe
|
||||
rvalue=$?
|
||||
cd -
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd test/unit
|
||||
cd $(dirname $0)/test/unit
|
||||
nosetests --exe --with-coverage --cover-package swift --cover-erase $@
|
||||
rvalue=$?
|
||||
rm -f .coverage
|
||||
|
Loading…
Reference in New Issue
Block a user