Update scripts/test to run unit tests from src
@@ -108,6 +108,7 @@ function run_build {
}
function run_unit {
+ pushd $PROJECT_DIR/src
local not_unit_tests="code.cloudfoundry.org,github.com,golang.org,google.golang.org,gopkg.in,integration_tests,lats,component_tests"
print_checkpoint "Running Unit Tests"
# TODO: remove build_etcd once announcer unit tests no longer depend on it
@@ -116,7 +117,9 @@ function run_unit {
--randomizeAllSpecs \
--slowSpecThreshold 20 \
--skipPackage="${not_unit_tests}" $@
- return $?
+ exit_code=$?
+ popd
+ return $exit_code
}
function run_integration {
