Fixes test running call on API server to be able to run single test files.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 30 Apr 2019 15:43:04 +0000 (12:43 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 30 Apr 2019 15:43:04 +0000 (12:43 -0300)
No issue #

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

build/run-tests.sh

index 909d43a32f251501d62bc38dd6c724dfccf97676..d9dd1bbdd3d093e411a479712495ecd0d9849018 100755 (executable)
@@ -1051,7 +1051,7 @@ test_gofmt() {
 test_services/api() {
     rm -f "$WORKSPACE/services/api/git-commit.version"
     cd "$WORKSPACE/services/api" \
-        && env RAILS_ENV=test ${short:+RAILS_TEST_SHORT=1} bundle exec bin/rails test TESTOPTS='-v -d' ${testargs[services/api]}
+        && env RAILS_ENV=test ${short:+RAILS_TEST_SHORT=1} bundle exec rake test TESTOPTS='-v -d' ${testargs[services/api]}
 }
 
 test_sdk/ruby() {